Bug 1393402 - Set longer timeout for document load. r=mixedpuppy, a=test-only on a CLOSED TREE DEVEDITION_56_0b7_RELEASE FENNEC_56_0b7_BUILD1 FENNEC_56_0b7_RELEASE FIREFOX_56_0b7_BUILD2 FIREFOX_56_0b7_RELEASE
authorShane Caraveo <scaraveo@mozilla.com>
Thu, 24 Aug 2017 14:35:31 -0700
changeset 423848 8081a895e4353e807a851485e412ed7a907c0b3f
parent 423847 2968e01b6f206a949ea8f941a3f86b6738828114
child 423849 f5944141d7779944001a570cd7a49818e7463966
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmixedpuppy, test-only
bugs1393402
milestone56.0
Bug 1393402 - Set longer timeout for document load. r=mixedpuppy, a=test-only on a CLOSED TREE MozReview-Commit-ID: BSWPMaNvtwG
toolkit/components/extensions/test/mochitest/test_ext_redirect_jar.html
--- a/toolkit/components/extensions/test/mochitest/test_ext_redirect_jar.html
+++ b/toolkit/components/extensions/test/mochitest/test_ext_redirect_jar.html
@@ -54,17 +54,17 @@ function getExtension() {
       async function testSubFrameResource(tabId, code) {
         let [result] = await browser.tabs.executeScript(tabId, {code: `
           new Promise(resolve => {
             var s = document.createElement('iframe');
             s.src = "/intercept?r=" + Math.random();
             s.onload = () => resolve(['loaded', s.contentWindow.location.href]);
             s.onerror = () => resolve(['error']);
             document.documentElement.appendChild(s);
-            setTimeout(() => resolve(['timed_out']), 2000);
+            setTimeout(() => resolve(['timed_out']), 5000);
           });`,
         });
         return result;
       }
 
       let tab = await browser.tabs.create({url: "http://mochi.test:8888/tests/toolkit/components/extensions/test/mochitest/file_sample.html"});
       let result = await testSubFrameResource(tab.id);
       browser.test.assertEq("loaded", result[0], "frame 1 loaded");