Bug 1182072 - Add more diagnostic output to test failures caused by extra windows, r?jmaher
--- a/testing/mochitest/browser-test.js
+++ b/testing/mochitest/browser-test.js
@@ -309,17 +309,17 @@ Tester.prototype = {
if (win != window && !win.closed &&
win.document.documentElement.getAttribute("id") != "browserTestHarness") {
let type = win.document.documentElement.getAttribute("windowtype");
switch (type) {
case "navigator:browser":
type = "browser window";
break;
case null:
- type = "unknown window";
+ type = "unknown window with document URI: " + win.document.documentURI;
break;
}
let msg = baseMsg.replace("{elt}", type);
if (this.currentTest)
this.currentTest.addResult(new testResult(false, msg, "", false));
else
this.dumper.structuredLogger.testEnd("browser-test.js",
"FAIL",