mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
9b6ab3d11b
commit
e3cf823f2f
@ -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