Changeset 232409 in webkit


Ignore:
Timestamp:
Jun 1, 2018 12:53:56 PM (6 years ago)
Author:
youenn@apple.com
Message:

http/tests/appcache/deferred-events.html is flaky due to console log messages
https://bugs.webkit.org/show_bug.cgi?id=185543

Reviewed by Chris Dumez.

Update the test to wait for the onerror callback.
At that time, all console logging should be done.

  • http/tests/appcache/deferred-events-expected.txt:
  • http/tests/appcache/deferred-events.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r232404 r232409  
     12018-06-01  Youenn Fablet  <youenn@apple.com>
     2
     3        http/tests/appcache/deferred-events.html is flaky due to console log messages
     4        https://bugs.webkit.org/show_bug.cgi?id=185543
     5
     6        Reviewed by Chris Dumez.
     7
     8        Update the test to wait for the onerror callback.
     9        At that time, all console logging should be done.
     10
     11        * http/tests/appcache/deferred-events-expected.txt:
     12        * http/tests/appcache/deferred-events.html:
     13
    1142018-05-29  Yusuke Suzuki  <utatane.tea@gmail.com>
    215
  • trunk/LayoutTests/http/tests/appcache/deferred-events-expected.txt

    r231499 r232409  
    22CONSOLE MESSAGE: Application Cache manifest could not be fetched, because the manifest had a 404 response.
    33Test that AppicationCache events are deferred until after onload has been fired.
    4 SUCCESS
     4PASS
  • trunk/LayoutTests/http/tests/appcache/deferred-events.html

    r120167 r232409  
    33  <script type="text/javascript">
    44    var onloadHasBeenCalled = false;
     5    var oncheckingAfterOnload = false;
    56
    67    if (window.testRunner) {
     
    1011
    1112    window.applicationCache.onchecking = function() {
    12         if (onloadHasBeenCalled)
    13             document.getElementById('result').innerHTML = "SUCCESS"
     13        oncheckingAfterOnload = onloadHasBeenCalled;
     14    }
     15
     16    window.applicationCache.onerror = function() {
     17        document.getElementById('result').innerHTML = oncheckingAfterOnload ? "PASS" : "FAIL";
     18        if (window.testRunner)
     19            testRunner.notifyDone();
     20    }
     21
     22    window.applicationCache.oncached = function() {
     23        document.getElementById('result').innerHTML = "FAIL: oncached event received";
    1424        if (window.testRunner)
    1525            testRunner.notifyDone();
Note: See TracChangeset for help on using the changeset viewer.