diff options
Diffstat (limited to 'browser/devtools/inspector/test/browser_inspector_highlighter_autohide.js')
-rw-r--r-- | browser/devtools/inspector/test/browser_inspector_highlighter_autohide.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/browser/devtools/inspector/test/browser_inspector_highlighter_autohide.js b/browser/devtools/inspector/test/browser_inspector_highlighter_autohide.js deleted file mode 100644 index 8dfca604b..000000000 --- a/browser/devtools/inspector/test/browser_inspector_highlighter_autohide.js +++ /dev/null @@ -1,46 +0,0 @@ -/* Any copyright is dedicated to the Public Domain. - http://creativecommons.org/publicdomain/zero/1.0/ */ - - -function test() -{ - let toolbox; - let inspector; - - waitForExplicitFinish(); - - gBrowser.selectedTab = gBrowser.addTab(); - gBrowser.selectedBrowser.addEventListener("load", function onload() { - gBrowser.selectedBrowser.removeEventListener("load", onload, true); - waitForFocus(startInspector, content); - }, true); - content.location = "data:text/html,mop" - - function startInspector() { - info("Tab loaded"); - openInspector(function(aInspector) { - inspector = aInspector; - ok(!inspector.highlighter.hidden, "Highlighter is visible"); - toolbox = inspector._toolbox; - toolbox.once("webconsole-selected", onWebConsoleSelected); - toolbox.selectTool("webconsole"); - }); - } - - function onWebConsoleSelected() { - executeSoon(function() { - ok(inspector.highlighter.hidden, "Highlighter is hidden"); - toolbox.once("inspector-selected", onInspectorSelected); - toolbox.selectTool("inspector"); - }); - } - - function onInspectorSelected() { - executeSoon(function() { - ok(!inspector.highlighter.hidden, "Highlighter is visible once inspector reopen"); - gBrowser.removeCurrentTab(); - finish(); - }); - } -} - |