зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1301340 - part2: Force single content process in some tests. r=mrbkap
This commit is contained in:
Родитель
5f1c1c094f
Коммит
876516c028
|
@ -91,7 +91,7 @@ function waitForCondition(condition, nextTest, errorMsg, okMsg) {
|
|||
moveOn();
|
||||
}
|
||||
tries++;
|
||||
}, 100);
|
||||
}, 500);
|
||||
var moveOn = function() {
|
||||
clearInterval(interval); nextTest();
|
||||
};
|
||||
|
|
|
@ -169,7 +169,9 @@ function test() {
|
|||
PopupNotifications.panel.removeAttribute("animate");
|
||||
});
|
||||
waitForExplicitFinish();
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.ipc.processCount", 1]]}, () => {
|
||||
runSocialTests(tests, undefined, postTestCleanup);
|
||||
});
|
||||
}
|
||||
|
||||
var tests = {
|
||||
|
|
|
@ -65,7 +65,10 @@ var gTests = [
|
|||
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
SpecialPowers.pushPrefEnv({"set": [["dom.ipc.processCount", 1]]}, runTest);
|
||||
}
|
||||
|
||||
function runTest() {
|
||||
// An empty tab where we can load the content script without leaving it
|
||||
// behind at the end of the test.
|
||||
gBrowser.addTab();
|
||||
|
|
|
@ -213,6 +213,8 @@ this.IsolationTestTools = {
|
|||
// Make sure preferences are set properly.
|
||||
yield SpecialPowers.pushPrefEnv({"set": aPref});
|
||||
|
||||
yield SpecialPowers.pushPrefEnv({"set": [["dom.ipc.processCount", 1]]});
|
||||
|
||||
yield aTask(aMode);
|
||||
});
|
||||
},
|
||||
|
|
|
@ -30,6 +30,12 @@ let checkToolbox = Task.async(function* (tab, location) {
|
|||
ok(!!gDevTools.getToolbox(target), `Toolbox exists ${location}`);
|
||||
});
|
||||
|
||||
add_task(function* setup() {
|
||||
yield SpecialPowers.pushPrefEnv({
|
||||
set: [["dom.ipc.processCount", 1]]
|
||||
});
|
||||
});
|
||||
|
||||
add_task(function* () {
|
||||
let tab = yield addTab(TEST_URL);
|
||||
|
||||
|
|
|
@ -58,6 +58,9 @@ function test() {
|
|||
|
||||
Services.prefs.setCharPref(PREF_DISCOVERURL, MAIN_URL);
|
||||
|
||||
SpecialPowers.pushPrefEnv({"set": [
|
||||
["dom.ipc.processCount", 1],
|
||||
]}, () => {
|
||||
var gProvider = new MockProvider();
|
||||
gProvider.createAddons([{
|
||||
id: "test1@tests.mozilla.org",
|
||||
|
@ -75,6 +78,7 @@ function test() {
|
|||
type: "theme",
|
||||
description: "bar"
|
||||
}]);
|
||||
});
|
||||
|
||||
run_next_test();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче