From 0fc2b4a24b7f84e772e88d6697e1944941f6e89f Mon Sep 17 00:00:00 2001 From: Brian Nicholson Date: Fri, 5 Oct 2012 17:27:12 -0700 Subject: [PATCH] Bug 769145 - Part 6: Update test cases for layout changes. r=mfinkle --- mobile/android/base/tests/testAllPagesTab.java.in | 3 ++- testing/mochitest/runtestsremote.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mobile/android/base/tests/testAllPagesTab.java.in b/mobile/android/base/tests/testAllPagesTab.java.in index f48b7c022e8..279377208a3 100644 --- a/mobile/android/base/tests/testAllPagesTab.java.in +++ b/mobile/android/base/tests/testAllPagesTab.java.in @@ -133,7 +133,8 @@ public class testAllPagesTab extends BaseTest { mSolo.waitForText(url); TabHost tabHost = (TabHost)mSolo.getView(TabHost.class, 0); - return (ListView)tabHost.getCurrentView(); + int listId = mDriver.findElement(getActivity(), "awesomebar_list").getId(); + return (ListView)tabHost.getCurrentView().findViewById(listId); } public void tearDown() throws Exception { diff --git a/testing/mochitest/runtestsremote.py b/testing/mochitest/runtestsremote.py index f071a4d783c..d17fd900106 100644 --- a/testing/mochitest/runtestsremote.py +++ b/testing/mochitest/runtestsremote.py @@ -450,6 +450,8 @@ def main(): fennec_ids = options.robocopIds dm.pushFile(fennec_ids, os.path.join(deviceRoot, "fennec_ids.txt")) options.extraPrefs.append('robocop.logfile="%s/robocop.log"' % deviceRoot) + options.extraPrefs.append('browser.search.suggest.enabled=true') + options.extraPrefs.append('browser.search.suggest.prompted=true') if (options.dm_trans == 'adb' and options.robocopPath): dm._checkCmd(["install", "-r", os.path.join(options.robocopPath, "robocop.apk")])