Bug 772093 - test fail on Mac: browser_inspector_bug_672902_keyboard_shortcuts.js | Test timed out. r=harth
authorPaul Rouget <paul@mozilla.com>
Mon, 09 Jul 2012 18:18:01 +0200
changeset 98749 d6c83328d74190ed1076fb8d1f0f0fbcb26ca7c5
parent 98748 80df6fa4627c07d48b67e5d23b6be5868fe07a69
child 98750 90c8e72e00b6f1e85f3688882ac8f7067f35b978
push idunknown
push userunknown
push dateunknown
reviewersharth
bugs772093
milestone16.0a1
Bug 772093 - test fail on Mac: browser_inspector_bug_672902_keyboard_shortcuts.js | Test timed out. r=harth
browser/devtools/highlighter/test/browser_inspector_bug_672902_keyboard_shortcuts.js
--- a/browser/devtools/highlighter/test/browser_inspector_bug_672902_keyboard_shortcuts.js
+++ b/browser/devtools/highlighter/test/browser_inspector_bug_672902_keyboard_shortcuts.js
@@ -37,16 +37,18 @@ function test()
     Services.obs.removeObserver(findAndHighlightNode,
                                 InspectorUI.INSPECTOR_NOTIFICATIONS.OPENED);
 
     executeSoon(function() {
       InspectorUI.highlighter.addListener("nodeselected", highlightBodyNode);
       // Test that navigating around without a selected node gets us to the
       // body element.
       node = doc.querySelector("body");
+      let bc = InspectorUI.breadcrumbs;
+      bc.nodeHierarchy[bc.currentIndex].button.focus();
       EventUtils.synthesizeKey("VK_RIGHT", { });
     });
   }
 
   function highlightBodyNode()
   {
     InspectorUI.highlighter.removeListener("nodeselected", highlightBodyNode);
     is(InspectorUI.selection, node, "selected body element");