зеркало из https://github.com/mozilla/pjs.git
Bug 630838 - Clear document.popupNode between browser chrome tests.
r=mano, gavin a=tests-only
This commit is contained in:
Родитель
1f3eb021a9
Коммит
20bb53b0bf
|
@ -169,6 +169,11 @@ Tester.prototype = {
|
|||
}
|
||||
};
|
||||
|
||||
// Clear document.popupNode. The test could have set it to a custom value
|
||||
// for its own purposes, nulling it out it will go back to the default
|
||||
// behavior of returning the last opened popup.
|
||||
document.popupNode = null;
|
||||
|
||||
// Note the test run time
|
||||
let time = Date.now() - this.lastStartTime;
|
||||
this.dumper.dump("INFO TEST-END | " + this.currentTest.path + " | finished in " + time + "ms\n");
|
||||
|
|
|
@ -50,6 +50,8 @@ _BROWSER_TEST_FILES = \
|
|||
browser_pass.js \
|
||||
browser_async.js \
|
||||
browser_privileges.js \
|
||||
browser_popupNode.js \
|
||||
browser_popupNode_check.js \
|
||||
# Disabled, these are only good for testing the harness' failure reporting
|
||||
# browser_zz_fail_openwindow.js \
|
||||
# browser_fail.js \
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
function test() {
|
||||
document.popupNode = document;
|
||||
isnot(document.popupNode, null, "document.popupNode has been correctly set");
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
function test() {
|
||||
is(document.popupNode, null, "document.popupNode has been correctly cleared");
|
||||
}
|
Загрузка…
Ссылка в новой задаче