Bug 1301340 - part3: Force single content process for tests that times out. r=mrbkap
authorGabor Krizsanits <gkrizsanits@mozilla.com>
Thu, 03 Nov 2016 19:28:03 +0100
changeset 347596 18ca736c0d1daef0c1edb4e19b622d3df131f24a
parent 347595 b3cf01afceb6fd3da03161f077f52bdc4e351d2d
child 347597 4a5a2c5cfb32967379c6726ae02e13d89ccf937f
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs1301340
milestone52.0a1
Bug 1301340 - part3: Force single content process for tests that times out. r=mrbkap
browser/components/contextualidentity/test/browser/browser_serviceworkers.js
devtools/client/webconsole/test/browser_webconsole_show_subresource_security_errors.js
devtools/client/webconsole/test/browser_webconsole_split.js
toolkit/content/tests/browser/browser_audioCompeting.js
--- a/browser/components/contextualidentity/test/browser/browser_serviceworkers.js
+++ b/browser/components/contextualidentity/test/browser/browser_serviceworkers.js
@@ -20,17 +20,18 @@ function openTabInUserContext(uri, userC
 
   return tab;
 }
 
 add_task(function* setup() {
   // make sure userContext is enabled.
   yield new Promise(resolve => {
     SpecialPowers.pushPrefEnv({"set": [
-      ["privacy.userContext.enabled", true]
+      ["privacy.userContext.enabled", true],
+      ["dom.ipc.processCount", 1]
     ]}, resolve);
   });
 });
 
 let infos = [];
 
 add_task(function* test() {
   // Open the same URI in multiple user contexts, and make sure we have a
--- a/devtools/client/webconsole/test/browser_webconsole_show_subresource_security_errors.js
+++ b/devtools/client/webconsole/test/browser_webconsole_show_subresource_security_errors.js
@@ -8,16 +8,22 @@
 "use strict";
 
 const TEST_URI = "data:text/html;charset=utf-8,Web Console subresource STS " +
                  "warning test";
 const TEST_DOC = "https://example.com/browser/devtools/client/webconsole/" +
                  "test/test_bug1092055_shouldwarn.html";
 const SAMPLE_MSG = "specified a header that could not be parsed successfully.";
 
+add_task(function* setup() {
+  yield SpecialPowers.pushPrefEnv({
+    set: [["dom.ipc.processCount", 1]]
+  });
+});
+
 add_task(function* () {
   let { browser } = yield loadTab(TEST_URI);
 
   let hud = yield openConsole();
 
   hud.jsterm.clearOutput();
 
   let loaded = loadBrowser(browser);
--- a/devtools/client/webconsole/test/browser_webconsole_split.js
+++ b/devtools/client/webconsole/test/browser_webconsole_split.js
@@ -3,16 +3,21 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 "use strict";
 
 const TEST_URI = "data:text/html;charset=utf-8,Web Console test for splitting";
 
 function test() {
+  waitForExplicitFinish();
+  SpecialPowers.pushPrefEnv({"set": [["dom.ipc.processCount", 1]]}, runTest);
+}
+
+function runTest() {
   // Test is slow on Linux EC2 instances - Bug 962931
   requestLongerTimeout(2);
 
   let {Toolbox} = require("devtools/client/framework/toolbox");
   let toolbox;
 
   loadTab(TEST_URI).then(testConsoleLoadOnDifferentPanel);
 
--- a/toolkit/content/tests/browser/browser_audioCompeting.js
+++ b/toolkit/content/tests/browser/browser_audioCompeting.js
@@ -58,17 +58,18 @@ function play_non_autoplay_audio () {
       resolve();
     };
   });
 }
 
 add_task(function* setup_test_preference() {
   yield new Promise(resolve => {
     SpecialPowers.pushPrefEnv({"set": [
-      ["dom.audiochannel.audioCompeting", true]
+      ["dom.audiochannel.audioCompeting", true],
+      ["dom.ipc.processCount", 1]
     ]}, resolve);
   });
 });
 
 add_task(function* cross_tabs_audio_competing () {
   info("- open tab 1 in foreground -");
   let tab1 = yield BrowserTestUtils.openNewForegroundTab(window.gBrowser,
                                                          "about:blank");