Finally fix unit test oranges: stop observing windows at the end of the test (browser_sort_in_library.js)

This commit is contained in:
Marco Bonardo committed 2009-01-30 18:52:33 +01:00
1 parent d066d621d0
commit 1279341fc1
1 file changed
+1
@@ -274,6 +274,7 @@ function test() {
let windowObserver = {
observe: function(aSubject, aTopic, aData) {
if (aTopic === "domwindowopened") {
ww.unregisterNotification(this);
let win = aSubject.QueryInterface(Ci.nsIDOMWindow);
win.addEventListener("load", function onLoad(event) {
win.removeEventListener("load", onLoad, false);