Bug 1553804: Follow-up: Fix another straggling chrome mochitest failure. r=bustage

MANUAL PUSH: Bustage fix.

--HG--
extra : amend_source : c8fecfa9ea6cf4867e58eba41b2092e636bbdac1
This commit is contained in:
Kris Maglione 2019-09-20 11:35:54 -07:00
Родитель 685d91c901
Коммит 6f808effff
2 изменённых файлов: 5 добавлений и 3 удалений

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

@ -90,7 +90,7 @@ function doTest() {
}); });
window.close(); window.close();
window.opener.lastResizerTest(); window.arguments[0].lastResizerTest();
} }
]]></script> ]]></script>
<hbox id="container" flex="1"> <hbox id="container" flex="1">

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

@ -32,9 +32,11 @@ function moveMouseTo(x, y, andThen) {
} }
function openWindows() { function openWindows() {
gLeftWindow = open('empty_window.xul', '_blank', 'chrome,screenX=50,screenY=50,width=200,height=200'); gLeftWindow = window.docShell.rootTreeItem.domWindow
.open('empty_window.xul', '_blank', 'chrome,screenX=50,screenY=50,width=200,height=200');
SimpleTest.waitForFocus(function () { SimpleTest.waitForFocus(function () {
gRightWindow = open('empty_window.xul', '', 'chrome,screenX=300,screenY=50,width=200,height=200'); gRightWindow = window.docShell.rootTreeItem.domWindow
.open('empty_window.xul', '', 'chrome,screenX=300,screenY=50,width=200,height=200');
SimpleTest.waitForFocus(attachBrowserToLeftWindow, gRightWindow); SimpleTest.waitForFocus(attachBrowserToLeftWindow, gRightWindow);
}, gLeftWindow); }, gLeftWindow);
} }