From 8172c0611ef6ea9a8724c94261ffe8fa7350b88b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Sat, 12 Jun 2010 07:43:58 +0200 Subject: [PATCH] Fix obvious bugs in browser_bug554155.js --- docshell/test/browser/browser_bug554155.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docshell/test/browser/browser_bug554155.js b/docshell/test/browser/browser_bug554155.js index 068447d888c..7078f25ae07 100644 --- a/docshell/test/browser/browser_bug554155.js +++ b/docshell/test/browser/browser_bug554155.js @@ -16,13 +16,15 @@ function test() { } }; - gBrowser.addTabsProgressListener(listener, Components.interfaces.nsIWebProgress.NOTIFY_ALL); + gBrowser.addTabsProgressListener(listener); // pushState to a new URL (http://example.com/foo"). This should trigger // exactly one LocationChange event. tab.linkedBrowser.contentWindow.history.pushState(null, null, "foo"); executeSoon(function() { + gBrowser.removeTab(tab); + gBrowser.removeTabsProgressListener(listener); is(numLocationChanges, 1, "pushState should cause exactly one LocationChange event."); finish();