Bug 666650 - [highlighter] create a global toolbar for the highlighter; r=mihai.sucan,gavin.sharp; a=testfix
authorRob Campbell <rcampbell@mozilla.com>
Tue, 02 Aug 2011 20:47:24 -0300
changeset 73754 56a12277818e375fd1f2c800699f8e9671caad1a
parent 73753 3d5ba47b14f2586fe86eab82582d6751988e6f0a
child 73755 bf5d54a5717a0ee5833c3364728644d291462fb7
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersmihai, testfix
bugs666650
milestone8.0a1
Bug 666650 - [highlighter] create a global toolbar for the highlighter; r=mihai.sucan,gavin.sharp; a=testfix
browser/base/content/test/inspector/browser_inspector_initialization.js
--- a/browser/base/content/test/inspector/browser_inspector_initialization.js
+++ b/browser/base/content/test/inspector/browser_inspector_initialization.js
@@ -47,17 +47,17 @@ function startInspectorTests()
 
 function runInspectorTests()
 {
   Services.obs.removeObserver(runInspectorTests,
     INSPECTOR_NOTIFICATIONS.OPENED, false);
   Services.obs.addObserver(finishInspectorTests,
     INSPECTOR_NOTIFICATIONS.CLOSED, false);
 
-  is(InspectorUI.toolbar.getAttribute("collapsed"), "false", "toolbar is visible");
+  ok(!InspectorUI.toolbar.hidden, "toolbar is visible");
   let iframe = document.getElementById("inspector-tree-iframe");
   is(InspectorUI.treeIFrame, iframe, "Inspector IFrame matches");
   ok(InspectorUI.inspecting, "Inspector is inspecting");
   ok(InspectorUI.isTreePanelOpen, "Inspector Tree Panel is open");
   ok(InspectorUI.highlighter, "Highlighter is up");
 
   executeSoon(function() {
     InspectorUI.closeInspectorUI();
@@ -67,17 +67,17 @@ function runInspectorTests()
 function finishInspectorTests()
 {
   Services.obs.removeObserver(finishInspectorTests,
     INSPECTOR_NOTIFICATIONS.CLOSED, false);
 
   ok(!InspectorUI.highlighter, "Highlighter is gone");
   ok(!InspectorUI.isTreePanelOpen, "Inspector Tree Panel is closed");
   ok(!InspectorUI.inspecting, "Inspector is not inspecting");
-  is(InspectorUI.toolbar.getAttribute("collapsed"), "true", "toolbar is collapsed");
+  ok(InspectorUI.toolbar.hidden, "toolbar is hidden");
 
   gBrowser.removeCurrentTab();
   finish();
 }
 
 function test()
 {
   waitForExplicitFinish();