Bug 1121519 - Fix racy test. r=jgraham, a=test-only
authorBen Turner <bent.mozilla@gmail.com>
Wed, 14 Jan 2015 11:43:31 -0800
changeset 250084 6454e62689f1
parent 250083 193fb1410c0d
child 250085 56d34ca3b983
push id4500
push userryanvm@gmail.com
push date2015-02-27 20:31 +0000
treeherdermozilla-beta@4564e0e22a37 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham, test-only
bugs1121519
milestone37.0
Bug 1121519 - Fix racy test. r=jgraham, a=test-only
testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.html
--- a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.html
+++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/sending-messages.html
@@ -8,24 +8,20 @@ postMessage(2);
 <title>close() and sending messages</title>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <div id="log"></div>
 <script>
 async_test(function() {
   var worker = new Worker('#');
   var i = 0;
-  var timeout = setTimeout(this.step_func(function(e) {
-    assert_equals(i, 2);
-  }), 500);
   worker.onmessage = this.step_func(function(e) {
     i++;
     assert_equals(e.data, i);
     if (i == 2) {
-      clearTimeout(timeout);
       this.done();
     }
   });
 });
 </script>
 <!--
 */
-//-->
\ No newline at end of file
+//-->