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:
Robert Kaiser 2008-09-11 02:07:52 +02:00
parent dcb70052c5
commit 720062e552
2 changed files with 2 additions and 0 deletions

View File

@ -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.");

View File

@ -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);