Bug 1023547 - Fix intermittent dom/workers/test/test_promise.html failure. r=bz, a=test-only
authorNikhil Marathe <nsm.nikhil@gmail.com>
Fri, 11 Jul 2014 20:21:54 -0700
changeset 199735 606f7891e3c437852c6b29f741d075ad7df65a69
parent 199734 72d553377ab66cb95706b7565ed0fb350f523a56
child 199736 1772e55568e420f8c7fbf7b9434157e9f419c8f1
push id3735
push userryanvm@gmail.com
push dateMon, 14 Jul 2014 13:59:54 +0000
treeherdermozilla-beta@1772e55568e4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, test-only
bugs1023547
milestone31.0
Bug 1023547 - Fix intermittent dom/workers/test/test_promise.html failure. r=bz, a=test-only
dom/workers/test/promise_worker.js
--- a/dom/workers/test/promise_worker.js
+++ b/dom/workers/test/promise_worker.js
@@ -551,24 +551,16 @@ function promiseRaceValuesArray() {
     runTest();
   }, function(err) {
     ok(false, "Should not fail " + err + ".");
     runTest();
   });
 }
 
 function promiseRacePromiseArray() {
-  function timeoutPromise(n) {
-    return new Promise(function(resolve) {
-      setTimeout(function() {
-        resolve(n);
-      }, n);
-    });
-  }
-
   var arr = [
     new Promise(function(resolve) {
       resolve("first");
     }),
     Promise.resolve("second"),
     new Promise(function() {}),
     new Promise(function(resolve) {
       setTimeout(function() {