зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1134307 - Remove some CPOWs from browser_windowName.js to avoid a dead CPOW intermittent. r=mconley
--HG-- extra : rebase_source : 5e14de829b32737d2303395fb1f61d8a43cd9d5d
This commit is contained in:
Родитель
87d0ea2fcb
Коммит
3e2e4745d5
|
@ -47,18 +47,18 @@ add_task(function* test() {
|
|||
}));
|
||||
});
|
||||
|
||||
is(browser1.contentDocument.title, '?old', "Tab1 title must be 'old'");
|
||||
is(browser1.contentDocument.nodePrincipal.userContextId, 1, "Tab1 UCI must be 1");
|
||||
is(browser1.contentTitle, '?old', "Tab1 title must be 'old'");
|
||||
is(browser1.contentPrincipal.userContextId, 1, "Tab1 UCI must be 1");
|
||||
|
||||
is(browser2.contentDocument.title, '?old', "Tab2 title must be 'old'");
|
||||
is(browser2.contentDocument.nodePrincipal.userContextId, 2, "Tab2 UCI must be 2");
|
||||
is(browser2.contentTitle, '?old', "Tab2 title must be 'old'");
|
||||
is(browser2.contentPrincipal.userContextId, 2, "Tab2 UCI must be 2");
|
||||
|
||||
let found = false;
|
||||
for (let i = 0; i < gBrowser.tabContainer.childNodes.length; ++i) {
|
||||
let tab = gBrowser.tabContainer.childNodes[i];
|
||||
let browser = gBrowser.getBrowserForTab(tab);
|
||||
if (browser.contentDocument.title == '?new') {
|
||||
is(browser.contentDocument.nodePrincipal.userContextId, 1, "Tab3 UCI must be 1");
|
||||
if (browser.contentTitle == '?new') {
|
||||
is(browser.contentPrincipal.userContextId, 1, "Tab3 UCI must be 1");
|
||||
isnot(browser, browser1, "Tab3 is not browser 1");
|
||||
isnot(browser, browser2, "Tab3 is not browser 2");
|
||||
gBrowser.removeTab(tab);
|
||||
|
|
Загрузка…
Ссылка в новой задаче