Bug 968783 - Request a longer timeout for test_jQuery.html. r=RyanVM, a=test-only
authorC.J. Ku <cku@mozilla.com>
Fri, 22 Aug 2014 00:50:00 -0400
changeset 221333 d202ef3b87bd8e3a67ac02b4b07c7ba34b848ee5
parent 221332 548fff9b12dfe01f79441d8b1dd6aae5e1000c39
child 221334 92ad4cfa9435fbe136c61071041812f90bc8d89e
push id3
push usergszorc@mozilla.com
push dateWed, 29 Oct 2014 02:45:36 +0000
reviewersRyanVM, test-only
bugs968783
milestone32.0
Bug 968783 - Request a longer timeout for test_jQuery.html. r=RyanVM, a=test-only
dom/tests/mochitest/ajax/lib/AJAX_setup.js
--- a/dom/tests/mochitest/ajax/lib/AJAX_setup.js
+++ b/dom/tests/mochitest/ajax/lib/AJAX_setup.js
@@ -9,22 +9,27 @@ function runAJAXTest() {
   var test = AJAXtests.shift();
   var testframe = document.getElementById("testframe");
   testframe.src = test;
 }
 
 function onManifestLoad(manifest) {
   if (manifest.testcases) {
     AJAXtests = manifest.testcases;
-    runAJAXTest();    
+    runAJAXTest();
   } else {
     ok(false, "manifest check", "no manifest!?!");
     SimpleTest.finish();
   }
 }
 
 function fetchManifest() {
   var d = loadJSONDoc("manifest.json");
   d.addBoth(onManifestLoad);
 }
 
+// Double timeout duration. Since this test case takes longer than 300 seconds
+// on B2G emulator.
+// See bug 968783.
+SimpleTest.requestLongerTimeout(2);
+
 SimpleTest.waitForExplicitFinish();
 addLoadEvent(fetchManifest);