Bug 834525: Supress testNewTab's closeTabs(). [r=mfinkle]
authorSriram Ramasubramanian <sriram@mozilla.com>
Wed, 30 Jan 2013 11:10:17 -0800
changeset 130315 7697e0d73d95a390893e469d0e4fac420df2acab
parent 130314 59b689e1d999add636bf2bf54b02c36ffbafdc96
child 130316 fc9b2b7ebfbd35f130c4f0cc276f5b1bb674f2da
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs834525
milestone21.0a1
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 834525: Supress testNewTab's closeTabs(). [r=mfinkle]
mobile/android/base/tests/testNewTab.java.in
--- a/mobile/android/base/tests/testNewTab.java.in
+++ b/mobile/android/base/tests/testNewTab.java.in
@@ -23,21 +23,19 @@ public class testNewTab extends BaseTest
         String url2 = getAbsoluteUrl("/robocop/robocop_blank_02.html");
 
         blockForGeckoReady();
 
         Activity activity = getActivity();
         tabCount = mDriver.findElement(activity, "tabs_count");
         tabs = mDriver.findElement(activity, "tabs");
         addTab = mDriver.findElement(activity, "add_tab");
-        closeTab = mDriver.findElement(activity, "close");
         mAsserter.ok(tabCount != null &&
                      tabs != null &&
-                     addTab != null &&
-                     closeTab != null,
+                     addTab != null, 
                      "Checking elements", "all elements present");
 
         int expectedTabCount = 1;
         String tabCountText = tabCount.getText();
         tabCountInt = Integer.parseInt(tabCountText);
         mAsserter.is(tabCountInt, expectedTabCount, "Initial number of tabs correct");
 
         addTab(url);
@@ -48,17 +46,17 @@ public class testNewTab extends BaseTest
 
         addTab(url2);
         expectedTabCount++;
         tabCountText = tabCount.getText();
         tabCountInt = Integer.parseInt(tabCountText);
         mAsserter.is(tabCountInt, expectedTabCount, "Number of tabs increased");
 
         // cleanup: close all opened tabs
-        closeTabs();
+        //closeTabs();
     }
 
     private void closeTabs() {
         final int closeTabId = closeTab.getId();
         String tabCountText = null;
 
         // open tabs panel
         boolean clicked = tabs.click();