From aa432dde730ed83fe7e885d963562fd26eaa66d5 Mon Sep 17 00:00:00 2001 From: Mihai Sucan Date: Sun, 17 Oct 2010 20:23:17 +0200 Subject: [PATCH] Bug 603610 - fix broken browser_webconsole_bug_588342_document_focus.js --- .../browser_webconsole_bug_588342_document_focus.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_588342_document_focus.js b/toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_588342_document_focus.js index a5e815aa69e8..0af18f160707 100644 --- a/toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_588342_document_focus.js +++ b/toolkit/components/console/hudservice/tests/browser/browser_webconsole_bug_588342_document_focus.js @@ -8,7 +8,7 @@ * * ***** END LICENSE BLOCK ***** */ -const TEST_URI = "http://example.com/browser/toolkit/components/console/hudservice/tests/browser/test-console.html"; +const TEST_URI = "data:text/html,Web Console test for bug 588342"; let fm, notificationBox, input; function test() @@ -60,13 +60,11 @@ function runTest() { is(fm.focusedWindow, browser.contentWindow.wrappedJSObject, "content document has focus"); input = notificationBox = fm = null; + finishTest(); } - finishTest(); }); } document.addEventListener("DOMNodeRemoved", domNodeRemoved , false); - fm = notificationBox = input = null; - finishTest(); + HUDService.deactivateHUDForContext(tab); } -