Bug 1308679 - Request a longer timeout for the tests that use first party isolation test framework. r?baku draft
authorTim Huang <tihuang@mozilla.com>
Sun, 30 Oct 2016 20:16:27 +0800
changeset 431565 de37e38cd9d1f5c81a33520e036a12138aec15f5
parent 430701 944cb0fd05526894fcd90fbe7d1e625ee53cd73d
child 535426 277d574635ab9ad3c30c5bfc3a5102d01ef0b346
push id34066
push userbmo:tihuang@mozilla.com
push dateSun, 30 Oct 2016 12:22:16 +0000
reviewersbaku
bugs1308679
milestone52.0a1
Bug 1308679 - Request a longer timeout for the tests that use first party isolation test framework. r?baku
browser/components/originattributes/test/browser/head.js
--- a/browser/components/originattributes/test/browser/head.js
+++ b/browser/components/originattributes/test/browser/head.js
@@ -276,16 +276,21 @@ this.IsolationTestTools = {
    *    An optional function which is called before any tabs are created so
    *    that the test case can set up/reset local state.
    */
   runTests(aURL, aGetResultFuncs, aCompareResultFunc, aBeforeFunc) {
     let pageURL;
     let firstFrameSetting;
     let secondFrameSetting;
 
+    // Request a longer timeout since the test will run a test for three times
+    // with different settings. Thus, one test here represents three tests.
+    // For this reason, we triple the timeout.
+    requestLongerTimeout(3);
+
     if (typeof aURL === "string") {
       pageURL = aURL;
     } else if (typeof aURL === "object") {
       pageURL = aURL.url;
       firstFrameSetting = aURL.firstFrameSetting;
       secondFrameSetting = aURL.secondFrameSetting;
     }