Bug 626500 - Part 2: Test adjustments; r=dao a=blocking-final+
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 19 Jan 2011 12:34:13 -0500
changeset 60874 64c98e4e1797a06d69d6b9aa55b61bb6ca6b54aa
parent 60873 411c730f86179fbf7cbfa0958c6da6be9795e45b
child 60875 754ea885a0f87af2f0cfe1e8684db67f5603657b
push id18145
push usereakhgari@mozilla.com
push dateWed, 19 Jan 2011 19:05:00 +0000
treeherdermozilla-central@64c98e4e1797 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, blocking-final
bugs626500
milestone2.0b10pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 626500 - Part 2: Test adjustments; r=dao a=blocking-final+
browser/base/content/test/tabview/browser_tabview_launch.js
browser/base/content/test/tabview/browser_tabview_rtl.js
--- a/browser/base/content/test/tabview/browser_tabview_launch.js
+++ b/browser/base/content/test/tabview/browser_tabview_launch.js
@@ -42,18 +42,19 @@ function test() {
   waitForExplicitFinish();
 
   // verify initial state
   ok(!TabView.isVisible(), "Tab View starts hidden");
 
   // use the Tab View button to launch it for the first time
   window.addEventListener("tabviewshown", onTabViewLoadedAndShown, false);
   let button = document.getElementById("tabview-button");
-  ok(button, "Tab View button exists");
-  button.doCommand();
+  ok(!button, "Tab View button not exist by default");
+  let tabViewCommand = document.getElementById("Browser:ToggleTabView");
+  tabViewCommand.doCommand();
 }
 
 // ----------
 function onTabViewLoadedAndShown() {
   window.removeEventListener("tabviewshown", onTabViewLoadedAndShown, false);
 
   // Evidently sometimes isVisible (which is based on the selectedIndex of the
   // tabview deck) isn't updated immediately when called from button.doCommand,
--- a/browser/base/content/test/tabview/browser_tabview_rtl.js
+++ b/browser/base/content/test/tabview/browser_tabview_rtl.js
@@ -46,18 +46,19 @@ function test() {
 
   // use the Tab View button to launch it for the first time
   window.addEventListener("tabviewshown", onTabViewLoadedAndShown("ltr"), false);
   toggleTabView();
 }
 
 function toggleTabView() {
   let button = document.getElementById("tabview-button");
-  ok(button, "Tab View button exists");
-  button.doCommand();
+  ok(!button, "Tab View button not exist by default");
+  let tabViewCommand = document.getElementById("Browser:ToggleTabView");
+  tabViewCommand.doCommand();
 }
 
 // ----------
 function onTabViewLoadedAndShown(dir) {
   return function() {
     window.removeEventListener("tabviewshown", arguments.callee, false);
     ok(TabView.isVisible(), "Tab View is visible.");