Changeset 83554 in webkit


Ignore:
Timestamp:
Apr 11, 2011 8:57:41 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-11 Xianzhu Wang <wangxianzhu@google.com>

Reviewed by Tony Gentilcore.

loader/reload-subresource-when-type-changes.html might be flaky
https://bugs.webkit.org/show_bug.cgi?id=56360

Onload of the third image might be triggered before that of the second image.
This might ahppen in environment with slow access (such as NFS, or tests
accessed through HTTP).

  • loader/reload-subresource-when-type-changes.html:
  • loader/resources/reload-subresource-when-type-changes.js:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r83550 r83554  
     12011-04-11  Xianzhu Wang  <wangxianzhu@google.com>
     2
     3        Reviewed by Tony Gentilcore.
     4
     5        loader/reload-subresource-when-type-changes.html might be flaky
     6        https://bugs.webkit.org/show_bug.cgi?id=56360
     7
     8        Onload of the third image might be triggered before that of the second image.
     9        This might ahppen in environment with slow access (such as NFS, or tests
     10        accessed through HTTP).
     11
     12        * loader/reload-subresource-when-type-changes.html:
     13        * loader/resources/reload-subresource-when-type-changes.js:
     14
    1152011-04-11  Sam Weinig  <sam@webkit.org>
    216
  • trunk/LayoutTests/loader/reload-subresource-when-type-changes.html

    r72817 r83554  
    1717}
    1818
     19var loaded = 0;
     20var messages = [];
     21
    1922function checkLoadedImage(event, testNumber) {
    2023    var imageWidth = event.target.width;
    2124    if (imageWidth == 25)
    22         log("PASS " + testNumber + " of 3");
     25        resourceLoaded("PASS ", testNumber);
    2326    else
    24         log("IMAGE SIZE " + imageWidth + " FAIL - " + testNumber + " of 2");
     27        resourceLoaded("IMAGE SIZE " + imageWidth + " FAIL - ", testNumber);
     28}
     29
     30function resourceLoaded(message, testNumber) {
     31    messages[testNumber] = message + testNumber + " of 3";
     32    if (++loaded == 3) {
     33        for (var i = 1; i <= 3; i++)
     34            log(messages[i]);
     35    }
    2536}
    2637</script>
  • trunk/LayoutTests/loader/resources/reload-subresource-when-type-changes.js

    r72817 r83554  
    11clearLog();
    2 log("PASS 1 of 3");
     2resourceLoaded("PASS ", 1);
Note: See TracChangeset for help on using the changeset viewer.