Changeset 56928 in webkit


Ignore:
Timestamp:
Apr 1, 2010 12:23:38 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-01 Julien Chaffraix <jchaffraix@webkit.org>

Reviewed by Eric Seidel.

Part of:
REGRESSION(56394):
http/tests/xmlhttprequest/xmlhttprequest-50ms-download-dispatch.html
fails on Tiger
https://bugs.webkit.org/show_bug.cgi?id=36934

  • http/tests/xmlhttprequest/xmlhttprequest-50ms-download-dispatch.html: Add more explicit failing messages to help find out what is failing.
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r56926 r56928  
     12010-04-01  Julien Chaffraix  <jchaffraix@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Part of:
     6        REGRESSION(56394):
     7        http/tests/xmlhttprequest/xmlhttprequest-50ms-download-dispatch.html
     8        fails on Tiger
     9        https://bugs.webkit.org/show_bug.cgi?id=36934
     10
     11        * http/tests/xmlhttprequest/xmlhttprequest-50ms-download-dispatch.html:
     12        Add more explicit failing messages to help find out what is failing.
     13
    1142010-04-01  Eric Seidel  <eric@webkit.org>
    215
  • trunk/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-50ms-download-dispatch.html

    r56394 r56928  
    2121}
    2222
    23 function test(iteration, delay, compare)
     23function test(iteration, delay, compare, testDescription)
    2424{
    2525    var count = 0;
     
    2828        ++count;
    2929        if (sawReadyStateDONE)
    30             log("FAILED: saw 'progress' event after readystate 'DONE' event.");
     30            log("FAILED: saw 'progress' event after readystate 'DONE' event for " + testDescription);
    3131    }
    3232
     
    3535            sawReadyStateDONE = true;
    3636            var passed =  compare(count, iteration);
    37             log(passed ? "PASSED" : "FAILED (count was " + count + ")");
     37            log(passed ? "PASSED" : "FAILED (count was " + count + ") for " + testDescription);
    3838        }
    3939    }
     
    4646}
    4747
     48try {
    4849// Number of chunks to send, delay between chunks
    4950var strictTests = [ 2, 80,
     
    5556}
    5657
     58var i = 0;
     59while (strictTests.length) {
     60    var iteration = strictTests.shift();
     61    var delay = strictTests.shift();
     62    test(iteration, delay, compareStrict, "strict test " + ++i);
     63}
     64
     65// Number of chunks to send, delay between chunks
    5766var throttledTests = [ 5, 20,
    5867                       6, 30 ];
     
    6271}
    6372
    64 try {
    65 while (strictTests.length) {
    66     var iteration = strictTests.shift();
    67     var delay = strictTests.shift();
    68     test(iteration, delay, compareStrict);
    69 }
     73i = 0;
    7074while(throttledTests.length) {
    7175    var iteration = throttledTests.shift();
    7276    var delay = throttledTests.shift();
    73     test(iteration, delay, compareThrottled);
     77    test(iteration, delay, compareThrottled, "throttled test " + ++i);
    7478}
    7579} catch(e) {
Note: See TracChangeset for help on using the changeset viewer.