From 7ebc65d1c88df71ee80a133b495141c6c962a37d Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Wed, 1 Jul 2015 14:53:16 +0200 Subject: [PATCH] Bug 1178555 - Fix up browser_inspector_highlighter-keybinding_04.j to stop permafailing on DevEdition. r=test-only --- .../test/browser_inspector_highlighter-keybinding_04.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/devtools/inspector/test/browser_inspector_highlighter-keybinding_04.js b/browser/devtools/inspector/test/browser_inspector_highlighter-keybinding_04.js index f6155779d3c7..a741d0b2e5d5 100644 --- a/browser/devtools/inspector/test/browser_inspector_highlighter-keybinding_04.js +++ b/browser/devtools/inspector/test/browser_inspector_highlighter-keybinding_04.js @@ -10,7 +10,7 @@ const TEST_URL = "data:text/html;charset=utf8,
"; add_task(function*() { - let {inspector, toolbox} = yield openInspectorForURL(TEST_URL); + let {toolbox} = yield openInspectorForURL(TEST_URL); info("Start the element picker"); yield toolbox.highlighterUtils.startPicker(); @@ -34,10 +34,12 @@ add_task(function*() { info("Press escape again and wait for the split console to open"); let onSplitConsole = toolbox.once("split-console"); + let onConsoleReady = toolbox.once("webconsole-ready"); // The escape key is synthesized in the main process, which is where the focus // should be after the picker was stopped. EventUtils.synthesizeKey("VK_ESCAPE", {}); yield onSplitConsole; + yield onConsoleReady; ok(toolbox.splitConsole, "The split console is shown."); // Hide the split console.