remove checks not belonging in these tests
authorDão Gottwald <dao@mozilla.com>
Thu, 20 Jan 2011 09:36:05 +0100
changeset 60926 4b66f1f3e3753d3e0d7683406796b063b6919e68
parent 60925 97a40e139df62fb0f1d6db0ffbd3d1d73d2a17fa
child 60927 e1a0d3b398463193d6a3351c646a7d7fd9d51bb5
push id18168
push userdgottwald@mozilla.com
push dateThu, 20 Jan 2011 08:46:39 +0000
treeherdermozilla-central@9136f40c8f05 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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
remove checks not belonging in these tests
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
@@ -39,20 +39,18 @@ let tabViewShownCount = 0;
 
 // ----------
 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
+  // launch tab view for the first time
   window.addEventListener("tabviewshown", onTabViewLoadedAndShown, false);
-  let button = document.getElementById("tabview-button");
-  ok(!button, "Tab View button not exist by default");
   let tabViewCommand = document.getElementById("Browser:ToggleTabView");
   tabViewCommand.doCommand();
 }
 
 // ----------
 function onTabViewLoadedAndShown() {
   window.removeEventListener("tabviewshown", onTabViewLoadedAndShown, false);
 
--- a/browser/base/content/test/tabview/browser_tabview_rtl.js
+++ b/browser/base/content/test/tabview/browser_tabview_rtl.js
@@ -45,18 +45,16 @@ function test() {
   ok(!TabView.isVisible(), "Tab View starts hidden");
 
   // 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 not exist by default");
   let tabViewCommand = document.getElementById("Browser:ToggleTabView");
   tabViewCommand.doCommand();
 }
 
 // ----------
 function onTabViewLoadedAndShown(dir) {
   return function() {
     window.removeEventListener("tabviewshown", arguments.callee, false);