Bug 612625 - intermittent orange: test_bug607584.xul continues executing after we've left the page, mostly showing up in test_bug171813.html; r=roc a=test-fix

This commit is contained in:
Ehsan Akhgari 2010-11-17 18:23:18 -05:00
parent 3864825ddd
commit f6d6332349

View File

@ -71,6 +71,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=607584
firstP.id == "foo" &&
lastP.id == "";
ok(isOk, "CR in a paragraph with an ID should not create two paragraphs of same ID");
progress.removeProgressListener(this);
SimpleTest.finish();
}
}
@ -99,11 +100,13 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=607584
mEditor: null
};
var progress;
function runTest() {
var newEditorElement = document.getElementById("editor");
newEditorElement.makeEditable("html", true);
var docShell = newEditorElement.boxObject.QueryInterface(Components.interfaces.nsIEditorBoxObject).docShell;
var progress = docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebProgress);
progress = docShell.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebProgress);
var progressListener = new EditorContentListener(newEditorElement);
progress.addProgressListener(progressListener, Components.interfaces.nsIWebProgress.NOTIFY_ALL);
newEditorElement.setAttribute("src", "about:blank");