mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1705073 - tweak dom/xhr/tests/browser_xhr_onchange_leak.js so that it works with Fission+BFCache, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D112029
This commit is contained in:
parent
43390b8361
commit
7ce45e29e0
@ -18,12 +18,14 @@ add_task(async function test() {
|
||||
"http://mochi.test:8888/browser/dom/xhr/tests/browser_xhr_onchange_leak.html";
|
||||
let newTab = await BrowserTestUtils.openNewForegroundTab(gBrowser, url);
|
||||
let browser = gBrowser.selectedBrowser;
|
||||
let done = await ContentTask.spawn(browser, null, async function() {
|
||||
let promise = ContentTaskUtils.waitForEvent(this, "DOMContentLoaded", true);
|
||||
content.location = "http://mochi.test:8888/";
|
||||
await promise;
|
||||
return true;
|
||||
});
|
||||
is(done, true, "need to check something");
|
||||
let pageShowPromise = BrowserTestUtils.waitForContentEvent(
|
||||
browser,
|
||||
"pageshow",
|
||||
true
|
||||
);
|
||||
BrowserTestUtils.loadURI(browser, "http://mochi.test:8888/");
|
||||
await pageShowPromise;
|
||||
|
||||
ok(pageShowPromise, "need to check something");
|
||||
BrowserTestUtils.removeTab(newTab);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user