Changeset 57916 in webkit


Ignore:
Timestamp:
Apr 20, 2010 2:12:33 PM (14 years ago)
Author:
dimich@chromium.org
Message:

worker-close.html is flaky on slow machines.
https://bugs.webkit.org/show_bug.cgi?id=37887

Reviewed by Adam Barth.

  • fast/workers/worker-close.html: Move the start of the timer to terminate the test after an expected message is received.
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r57915 r57916  
     12010-04-20  Dmitry Titov  <dimich@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        worker-close.html is flaky on slow machines.
     6        https://bugs.webkit.org/show_bug.cgi?id=37887
     7
     8        * fast/workers/worker-close.html: Move the start of the timer to terminate the test after an expected message is received.
     9
    1102010-04-20  James Robinson  <jamesr@chromium.org>
    211
  • trunk/LayoutTests/fast/workers/worker-close.html

    r57349 r57916  
    8888    worker.onmessage = function(evt) {
    8989        log("PASS: Received message after worker closed: " + evt.data);
     90        // Give worker a chance to close first, then terminate it.
     91        timeout = setTimeout(function() {
     92            worker.terminate();
     93            done();
     94        }, 500);
    9095    };
    91     // Give worker a chance to close first, then terminate it.
    92     timeout = setTimeout(function() {
    93         worker.terminate();
    94         done();
    95     }, 500);
    9696}
    9797
Note: See TracChangeset for help on using the changeset viewer.