mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1484373: Follow-up: Work around a new race in browser_webext_options. r=bustage
--HG-- extra : amend_source : 30b8ee268ba9b5c1c9fcbded7fc3d6b3dfd4c650
This commit is contained in:
parent
7baee54e0f
commit
6c31f4c8d4
@ -31,13 +31,17 @@ async function runTest(installer) {
|
||||
"Current view should scroll to preferences");
|
||||
|
||||
var browser = mgrWindow.document.querySelector("#detail-grid > rows > stack > .inline-options-browser");
|
||||
var rows = browser.parentNode;
|
||||
|
||||
let url = await ContentTask.spawn(browser, {}, () => content.location.href);
|
||||
|
||||
ok(browser, "Grid should have a browser descendant");
|
||||
is(browser.localName, "browser", "Grid should have a browser descendant");
|
||||
is(url, element.mAddon.optionsURL, "Browser has the expected options URL loaded");
|
||||
|
||||
var rows = browser.parentNode;
|
||||
|
||||
await ContentTask.spawn(browser, element.mAddon.optionsURL,
|
||||
async url => {
|
||||
await ContentTaskUtils.waitForCondition(() =>
|
||||
content.location.href == url,
|
||||
"Browser has the expected options URL loaded");
|
||||
});
|
||||
|
||||
is(browser.clientWidth, browser.parentNode.clientWidth,
|
||||
"Browser should be the same width as its direct parent");
|
||||
|
Loading…
Reference in New Issue
Block a user