Changeset 53058 in webkit


Ignore:
Timestamp:
Jan 10, 2010 7:41:02 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-01-10 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

http/tests/messaging/cross-domain-message-event-dispatch.html failed on Gtk Linux 64-Bit Debug Bot
https://bugs.webkit.org/show_bug.cgi?id=33458

Fix flakey test. If the machine is very slow, then more than 10ms
might have elapsed between registering the timeout and calling
postMessage. We can't be sure which order they will be called in.
Re-ordering the call guarantees the arrival order, even if it reduces
our coverage slightly.

  • http/tests/messaging/cross-domain-message-event-dispatch.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r53056 r53058  
     12010-01-10  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        http/tests/messaging/cross-domain-message-event-dispatch.html failed on Gtk Linux 64-Bit Debug Bot
     6        https://bugs.webkit.org/show_bug.cgi?id=33458
     7
     8        Fix flakey test.  If the machine is very slow, then more than 10ms
     9        might have elapsed between registering the timeout and calling
     10        postMessage.  We can't be sure which order they will be called in.
     11        Re-ordering the call guarantees the arrival order, even if it reduces
     12        our coverage slightly.
     13
     14        * http/tests/messaging/cross-domain-message-event-dispatch.html:
     15
    1162010-01-10  Adam Barth  <abarth@webkit.org>
    217
  • trunk/LayoutTests/http/tests/messaging/cross-domain-message-event-dispatch.html

    r33006 r53058  
    2323
    2424    // The setTimeout handlers will get called after the
    25     // event listeners, because setTimeout has a minimum wait time
    26     // of 10ms while postMessage has no minimum wait time.
     25    // event listeners.
    2726    postMessage("Message1", "*");
     27    postMessage("Message2", "*");
     28    postMessage("Message3", "*");
    2829    setTimeout("log('setTimeout1')", 0);
    29     postMessage("Message2", "*");
    3030    setTimeout("log('setTimeout2')", 0);
    31     postMessage("Message3", "*");
    3231    setTimeout(done, 0);
    3332    log("Events queued");
Note: See TracChangeset for help on using the changeset viewer.