Bug 1147911 Part 4: Fix test to allow for separate file content process. r=ochameau

This commit is contained in:
Bob Owen 2016-11-17 15:48:52 +00:00
Родитель c9055e97ff
Коммит 536555b2d6
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -7,7 +7,6 @@
const PREF = "devtools.webconsole.persistlog"; const PREF = "devtools.webconsole.persistlog";
const TEST_FILE = "test-network.html"; const TEST_FILE = "test-network.html";
const TEST_URI = "data:text/html;charset=utf8,<p>test file URI";
var hud; var hud;
@ -22,7 +21,9 @@ add_task(function* () {
dir.append(TEST_FILE); dir.append(TEST_FILE);
let uri = Services.io.newFileURI(dir); let uri = Services.io.newFileURI(dir);
let { browser } = yield loadTab(TEST_URI); // We need a file remote type to make sure we don't switch processes when we
// load the file:// URI.
let { browser } = yield loadTab("about:blank", "file");
hud = yield openConsole(); hud = yield openConsole();
hud.jsterm.clearOutput(); hud.jsterm.clearOutput();

Просмотреть файл

@ -46,10 +46,10 @@ const DOCS_GA_PARAMS = "?utm_source=mozilla" +
flags.testing = true; flags.testing = true;
function loadTab(url) { function loadTab(url, preferredRemoteType) {
let deferred = promise.defer(); let deferred = promise.defer();
let tab = gBrowser.selectedTab = gBrowser.addTab(url); let tab = gBrowser.selectedTab = gBrowser.addTab(url, { preferredRemoteType });
let browser = gBrowser.getBrowserForTab(tab); let browser = gBrowser.getBrowserForTab(tab);
browser.addEventListener("load", function onLoad() { browser.addEventListener("load", function onLoad() {