mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 571885 - blame tests for leaving too many tabs open. pending r=gavin
This commit is contained in:
parent
1a63d566a2
commit
7235b520f2
@ -71,6 +71,14 @@ Tester.prototype = {
|
||||
},
|
||||
|
||||
waitForWindowsState: function Tester_waitForWindowsState(aCallback) {
|
||||
if (this.currentTest && gBrowser.tabs.length > 1) {
|
||||
let msg = "Found " + (gBrowser.tabs.length - 1) +
|
||||
" unexpected tab(s) at the end of test run";
|
||||
this.currentTest.addResult(new testResult(false, msg, "", false));
|
||||
while (gBrowser.tabs.length > 1)
|
||||
gBrowser.removeTab(gBrowser.tabContainer.lastChild);
|
||||
}
|
||||
|
||||
this.dumper.dump("TEST-INFO | checking window state\n");
|
||||
let windowsEnum = this._wm.getEnumerator("navigator:browser");
|
||||
while (windowsEnum.hasMoreElements()) {
|
||||
|
Loading…
Reference in New Issue
Block a user