Bug 979621 - Do not click in Robocop focusUrlBar; r=mcomella
authorGeoff Brown <gbrown@mozilla.com>
Fri, 28 Mar 2014 11:39:13 -0600
changeset 175883 37377f1c2852c392e25e9d4d5a38ba954bde7b8b
parent 175882 4b682074d04a14ff1585f59adca970b1ea2f61d6
child 175884 27359bb9c37020e0affe990aef7d1b9feb57be16
push id41636
push usergbrown@mozilla.com
push dateFri, 28 Mar 2014 17:39:34 +0000
treeherdermozilla-inbound@27359bb9c370 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcomella
bugs979621
milestone31.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 979621 - Do not click in Robocop focusUrlBar; r=mcomella
mobile/android/base/tests/BaseTest.java
--- a/mobile/android/base/tests/BaseTest.java
+++ b/mobile/android/base/tests/BaseTest.java
@@ -192,20 +192,18 @@ abstract class BaseTest extends Activity
 
         // Wait for highlighed text to gain focus
         boolean success = waitForCondition(new Condition() {
             @Override
             public boolean isSatisfied() {
                 EditText urlEditText = (EditText) mSolo.getView(R.id.url_edit_text);
                 if (urlEditText.isInputMethodTarget()) {
                     return true;
-                } else {
-                    mSolo.clickOnView(urlEditText);
-                    return false;
                 }
+                return false;
             }
         }, MAX_WAIT_ENABLED_TEXT_MS);
 
         mAsserter.ok(success, "waiting for urlbar text to gain focus", "urlbar text gained focus");
     }
 
     protected final void enterUrl(String url) {
         final EditText urlEditView = (EditText) mSolo.getView(R.id.url_edit_text);