зеркало из https://github.com/mozilla/gecko-dev.git
Bug 746834: Fix the test for Bug 575561 to not use DOM objects after navigating the Window. r=dao a=test-only
This commit is contained in:
Родитель
5f10ccfb00
Коммит
89d85bb87b
|
@ -66,10 +66,11 @@ function testLink(aLinkIndex, pinTab, expectNewTab, nextTest, testSubFrame) {
|
|||
|
||||
info("Clicking " + links[aLinkIndex].textContent);
|
||||
EventUtils.sendMouseEvent({type:"click"}, links[aLinkIndex], browser.contentWindow);
|
||||
let linkLocation = links[aLinkIndex].href;
|
||||
|
||||
function onPageLoad() {
|
||||
browser.removeEventListener("load", onPageLoad, true);
|
||||
is(browser.contentDocument.location.href, links[aLinkIndex].href, "Link should not open in a new tab");
|
||||
is(browser.contentDocument.location.href, linkLocation, "Link should not open in a new tab");
|
||||
executeSoon(function(){
|
||||
gBrowser.removeTab(appTab);
|
||||
nextTest();
|
||||
|
|
Загрузка…
Ссылка в новой задаче