mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
bug 454513 - browser_bug453896.js fails on all SeaMonkey unit test boxes, remove event listeners added by the tests when they aren't needed any more, r=dbaron
This commit is contained in:
parent
dcb70052c5
commit
720062e552
@ -18,6 +18,7 @@ function test() {
|
||||
}
|
||||
|
||||
function checkPage() {
|
||||
window.removeEventListener("DOMContentLoaded", checkPage, false);
|
||||
|
||||
is(newBrowser.contentDocument.getElementById("test_span"), null, "Error message should not be parsed as HTML, and hence shouldn't include the 'test_span' element.");
|
||||
|
||||
|
@ -18,6 +18,7 @@ function test() {
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
theBrowser.removeEventListener("load", listener, true);
|
||||
var fake_window = { ok: ok, SimpleTest: { finish: finish } };
|
||||
theBrowser.contentWindow.wrappedJSObject.run(fake_window);
|
||||
gBrowser.removeTab(theTab);
|
||||
|
Loading…
Reference in New Issue
Block a user