| Index: chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/OmniboxTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/OmniboxTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/OmniboxTest.java
|
| index c57ff4041508c76aa29100cfbc29742633a80c0f..3e31ec0f7642c6079afe5fa82d87dc499913cb00 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/OmniboxTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/OmniboxTest.java
|
| @@ -24,6 +24,7 @@ import org.chromium.base.ThreadUtils;
|
| import org.chromium.base.test.util.EnormousTest;
|
| import org.chromium.base.test.util.Feature;
|
| import org.chromium.base.test.util.FlakyTest;
|
| +import org.chromium.base.test.util.RetryOnFailure;
|
| import org.chromium.base.test.util.ScalableTimeout;
|
| import org.chromium.chrome.R;
|
| import org.chromium.chrome.browser.ChromeActivity;
|
| @@ -78,6 +79,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
| */
|
| @EnormousTest
|
| @Feature({"Omnibox"})
|
| + @RetryOnFailure
|
| public void testSimpleUse() throws InterruptedException {
|
| typeInOmnibox("aaaaaaa", false);
|
|
|
| @@ -99,6 +101,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
| */
|
| @MediumTest
|
| @Feature({"Omnibox"})
|
| + @RetryOnFailure
|
| public void testFocusChangingSoftInputMode() throws InterruptedException {
|
| final UrlBar urlBar = (UrlBar) getActivity().findViewById(R.id.url_bar);
|
|
|
| @@ -126,6 +129,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
| */
|
| @MediumTest
|
| @Feature({"Omnibox"})
|
| + @RetryOnFailure
|
| public void testRequestZeroSuggestOnFocus() throws Exception {
|
| final LocationBarLayout locationBar =
|
| (LocationBarLayout) getActivity().findViewById(R.id.location_bar);
|
| @@ -169,6 +173,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
| */
|
| @MediumTest
|
| @Feature({"Omnibox"})
|
| + @RetryOnFailure
|
| public void testRequestZeroSuggestAfterDelete() throws InterruptedException {
|
| final LocationBarLayout locationBar =
|
| (LocationBarLayout) getActivity().findViewById(R.id.location_bar);
|
| @@ -264,6 +269,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
| // text is correct.
|
| @MediumTest
|
| @Feature({"Omnibox"})
|
| + @RetryOnFailure
|
| public void testDefaultText() throws InterruptedException {
|
| startMainActivityFromLauncher();
|
|
|
| @@ -291,6 +297,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
|
|
| @MediumTest
|
| @Feature({"Omnibox", "Main"})
|
| + @RetryOnFailure
|
| public void testAutoCompleteAndCorrectionLandscape() throws ExecutionException,
|
| InterruptedException {
|
| // Default orientation for tablets is landscape. Default for phones is portrait.
|
| @@ -303,6 +310,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
|
|
| @MediumTest
|
| @Feature({"Omnibox", "Main"})
|
| + @RetryOnFailure
|
| public void testAutoCompleteAndCorrectionPortrait() throws ExecutionException,
|
| InterruptedException {
|
| // Default orientation for tablets is landscape. Default for phones is portrait.
|
| @@ -354,6 +362,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
|
|
| @MediumTest
|
| @Feature({"Omnibox"})
|
| + @RetryOnFailure
|
| public void testDuplicateAutocompleteTextResults()
|
| throws InterruptedException, ExecutionException {
|
| Map<String, List<SuggestionsResult>> suggestionsMap = buildSuggestionMap(
|
| @@ -382,6 +391,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
|
|
| @MediumTest
|
| @Feature({"Omnibox"})
|
| + @RetryOnFailure
|
| public void testGrowingAutocompleteTextResults()
|
| throws InterruptedException, ExecutionException {
|
| Map<String, List<SuggestionsResult>> suggestionsMap = buildSuggestionMap(
|
| @@ -410,6 +420,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
|
|
| @MediumTest
|
| @Feature({"Omnibox"})
|
| + @RetryOnFailure
|
| public void testShrinkingAutocompleteTextResults()
|
| throws InterruptedException, ExecutionException {
|
| Map<String, List<SuggestionsResult>> suggestionsMap = buildSuggestionMap(
|
| @@ -584,6 +595,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
| }
|
|
|
| @SmallTest
|
| + @RetryOnFailure
|
| public void testSplitPathFromUrlDisplayText() {
|
| verifySplitUrlAndPath("", null, LocationBarLayout.splitPathFromUrlDisplayText(""));
|
| verifySplitUrlAndPath(
|
| @@ -642,6 +654,7 @@ public class OmniboxTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
|
|
| @MediumTest
|
| @Feature({"Omnibox"})
|
| + @RetryOnFailure
|
| public void testSuggestionDirectionSwitching() throws InterruptedException {
|
| final TextView urlBarView = (TextView) getActivity().findViewById(R.id.url_bar);
|
| ThreadUtils.runOnUiThreadBlocking(new Runnable() {
|
|
|