зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
ea277028d1
Коммит
3b5a7780dc
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче