Bug 1027127 - Remove setTimeout to avoid intermittent test failure. r=dchan, a=test-only
authorYuan Xulei <xyuan@mozilla.com>
Thu, 03 Jul 2014 14:07:06 +0800
changeset 208799 0cbe72c494832d948a28be346291fafc7f8e032f
parent 208798 1a25682996a58021971e8c7a2cdd88da8b3a1418
child 208800 b954ca743de142f76c43edb5ea182aeabac6bb84
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdchan, test-only
bugs1027127
milestone32.0a2
Bug 1027127 - Remove setTimeout to avoid intermittent test failure. r=dchan, a=test-only
dom/permission/tests/file_shim.html
--- a/dom/permission/tests/file_shim.html
+++ b/dom/permission/tests/file_shim.html
@@ -50,39 +50,33 @@ TestData.prototype = {
     }
   },
 }
 
 function receiveMessage(e) {
   var src = e.source;
   var step = e.data.step;
   var id = e.data.id;
-  var timer = window.setTimeout(timeout, 10000);
   var data = new TestData(e.data.testdata);
   var success, failure;
 
   function reply(res, msg) {
-    window.clearTimeout(timer);
     window.removeEventListener("message", receiveMessage, false);
     src.postMessage({result: res, msg: msg,
                      id: id}, "*");
   }
 
   function _success(msg) {
     reply(true, msg);
   }
 
   function _failure(msg) {
     reply(false, msg);
   }
 
-  function timeout() {
-    reply(false, "Test timed out", false);
-  }
-
   // flip success and failure around for precheck
   if (step == 0) {
     success = _failure;
     failure = _success;
   } else {
     success = _success;
     failure = _failure;
   }