| Index: chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java
|
| diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java
|
| index 5f8438b6cde647659a3f77b013ac5b7b549d1635..611c7032750807389e8d1486aa9592cc40fe1a9d 100644
|
| --- a/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java
|
| +++ b/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java
|
| @@ -84,6 +84,7 @@ import java.util.concurrent.TimeoutException;
|
| // NOTE: Disable online detection so we we'll default to online on test bots with no network.
|
| @Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
|
| @CommandLineFlags.Add(ContextualSearchFieldTrial.ONLINE_DETECTION_DISABLED)
|
| +@RetryOnFailure
|
| public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<ChromeActivity> {
|
| private static final String TEST_PAGE =
|
| "/chrome/test/data/android/contextualsearch/tap_test.html";
|
| @@ -1019,7 +1020,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testHidesWhenOmniboxFocused() throws InterruptedException, TimeoutException {
|
| clickWordNode("intelligence");
|
|
|
| @@ -1038,7 +1038,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testDoesContainAWord() {
|
| assertTrue(mSelectionController.doesContainAWord("word"));
|
| assertTrue(mSelectionController.doesContainAWord("word "));
|
| @@ -1057,7 +1056,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testIsValidSelection() {
|
| StubbedContentViewCore stubbedCvc = new StubbedContentViewCore(
|
| getActivity().getBaseContext());
|
| @@ -1081,7 +1079,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTap() throws InterruptedException, TimeoutException {
|
| clickWordNode("intelligence");
|
|
|
| @@ -1097,7 +1094,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testLongPress() throws InterruptedException, TimeoutException {
|
| longPressNode("states");
|
|
|
| @@ -1190,7 +1186,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testPrefetchFailoverRequestMadeAfterOpen()
|
| throws InterruptedException, TimeoutException {
|
| mFakeServer.reset();
|
| @@ -1219,7 +1214,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapDisablePreload() throws InterruptedException, TimeoutException {
|
| clickWordNode("intelligence");
|
|
|
| @@ -1235,7 +1229,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testLongPressGestureSelects() throws InterruptedException, TimeoutException {
|
| longPressNode("intelligence");
|
| assertEquals("Intelligence", getSelectedText());
|
| @@ -1255,7 +1248,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapGestureSelects() throws InterruptedException, TimeoutException {
|
| clickWordNode("intelligence");
|
| assertEquals("Intelligence", getSelectedText());
|
| @@ -1273,7 +1265,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapGestureOnSpecialCharacterDoesntSelect()
|
| throws InterruptedException, TimeoutException {
|
| clickNode("question-mark");
|
| @@ -1288,7 +1279,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapGestureFollowedByScrollClearsSelection()
|
| throws InterruptedException, TimeoutException {
|
| clickWordNode("intelligence");
|
| @@ -1306,7 +1296,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapGestureFollowedByInvalidTextTapCloses()
|
| throws InterruptedException, TimeoutException {
|
| clickWordNode("states-far");
|
| @@ -1321,7 +1310,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| * Tests that a Tap gesture followed by tapping a non-text character doesn't select.
|
| * @SmallTest
|
| * @Feature({"ContextualSearch"})
|
| - * @RetryOnFailure
|
| * crbug.com/665633
|
| */
|
| @DisabledTest
|
| @@ -1337,7 +1325,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapGestureFarAwayTogglesSelecting()
|
| throws InterruptedException, TimeoutException {
|
| clickWordNode("states");
|
| @@ -1358,7 +1345,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapGesturesNearbyKeepSelecting() throws InterruptedException, TimeoutException {
|
| clickWordNode("states");
|
| assertEquals("States", getSelectedText());
|
| @@ -1443,8 +1429,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| -
|
| - @RetryOnFailure
|
| public void testContextualSearchNotDismissedOnBackgroundTabCrash()
|
| throws InterruptedException, TimeoutException {
|
| ChromeTabUtils.newTabFromMenu(getInstrumentation(),
|
| @@ -1480,7 +1464,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapSearchBarPromotesToTab() throws InterruptedException, TimeoutException {
|
| // -------- SET UP ---------
|
| // Track Tab creation with this helper.
|
| @@ -1527,7 +1510,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapOnRoleIgnored() throws InterruptedException, TimeoutException {
|
| PanelState initialState = mPanel.getPanelState();
|
| clickNode("role");
|
| @@ -1540,7 +1522,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapOnARIAIgnored() throws InterruptedException, TimeoutException {
|
| PanelState initialState = mPanel.getPanelState();
|
| clickNode("aria");
|
| @@ -1552,7 +1533,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapOnFocusableIgnored() throws InterruptedException, TimeoutException {
|
| PanelState initialState = mPanel.getPanelState();
|
| clickNode("focusable");
|
| @@ -1566,7 +1546,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @Feature({"ContextualSearch"})
|
| @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
|
| @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
|
| - @RetryOnFailure
|
| public void testTapLimitForDecided() throws InterruptedException, TimeoutException {
|
| mPolicy.setTapLimitForDecidedForTesting(2);
|
| clickToTriggerPrefetch();
|
| @@ -1596,7 +1575,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @Feature({"ContextualSearch"})
|
| @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
|
| @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
|
| - @RetryOnFailure
|
| public void testTapLimitForUndecided() throws InterruptedException, TimeoutException {
|
| mPolicy.setTapLimitForUndecidedForTesting(2);
|
| mPolicy.overrideDecidedStateForTesting(false);
|
| @@ -1627,7 +1605,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testExpandBeforeSearchTermResolution()
|
| throws InterruptedException, TimeoutException {
|
| clickWordNode("states");
|
| @@ -1651,7 +1628,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testSearchTermResolutionError() throws InterruptedException, TimeoutException {
|
| clickWordNode("states");
|
| assertSearchTermRequested();
|
| @@ -1670,7 +1646,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testHttpsBeforeAcceptForOptOut() throws InterruptedException, TimeoutException {
|
| mPolicy.overrideDecidedStateForTesting(false);
|
| mFakeServer.setShouldUseHttps(true);
|
| @@ -1685,7 +1660,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testHttpsAfterAcceptForOptOut() throws InterruptedException, TimeoutException {
|
| mPolicy.overrideDecidedStateForTesting(true);
|
| mFakeServer.setShouldUseHttps(true);
|
| @@ -1698,7 +1672,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testHttpBeforeAcceptForOptOut() throws InterruptedException, TimeoutException {
|
| mPolicy.overrideDecidedStateForTesting(false);
|
|
|
| @@ -1710,7 +1683,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testHttpAfterAcceptForOptOut() throws InterruptedException, TimeoutException {
|
| mPolicy.overrideDecidedStateForTesting(true);
|
|
|
| @@ -1747,7 +1719,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
|
| - @RetryOnFailure
|
| @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
|
| public void testAppMenuSuppressedWhenExpanded() throws InterruptedException, TimeoutException {
|
| clickWordNode("states");
|
| @@ -1767,7 +1738,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testAppMenuSuppressedWhenMaximized() throws InterruptedException, TimeoutException {
|
| clickWordNode("states");
|
| flingPanelUpToTop();
|
| @@ -1794,7 +1764,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testPromoTapCount() throws InterruptedException, TimeoutException {
|
| mPolicy.setPromoTapTriggeredLimitForTesting(2);
|
| mPolicy.overrideDecidedStateForTesting(false);
|
| @@ -1869,7 +1838,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @Feature({"ContextualSearch"})
|
| @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
|
| @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
|
| - @RetryOnFailure
|
| public void testPromoOpenCountForDecided() throws InterruptedException, TimeoutException {
|
| mPolicy.overrideDecidedStateForTesting(true);
|
|
|
| @@ -1925,7 +1893,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
|
| - @RetryOnFailure
|
| public void testNotifyObserverHideAfterLongPress()
|
| throws InterruptedException, TimeoutException {
|
| TestContextualSearchObserver observer = new TestContextualSearchObserver();
|
| @@ -1976,7 +1943,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testNotifyObserverHideOnClearSelectionAfterTap()
|
| throws InterruptedException, TimeoutException {
|
| TestContextualSearchObserver observer = new TestContextualSearchObserver();
|
| @@ -2006,7 +1972,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testPreventHandlingCurrentSelectionModification()
|
| throws InterruptedException, TimeoutException {
|
| simulateLongPressSearch("search");
|
| @@ -2040,7 +2005,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| @CommandLineFlags.Add(ContextualSearchFieldTrial.SUPPRESSION_TAPS + "=" + PLENTY_OF_TAPS)
|
| - @RetryOnFailure
|
| public void testTapALot() throws InterruptedException, TimeoutException {
|
| mPolicy.setTapLimitForDecidedForTesting(PLENTY_OF_TAPS);
|
| mPolicy.setTapLimitForUndecidedForTesting(PLENTY_OF_TAPS);
|
| @@ -2082,7 +2046,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testRedirectedExternalNavigationWithUserGesture() {
|
| final ExternalNavigationHandler externalNavHandler =
|
| new ExternalNavigationHandler(getActivity().getActivityTab());
|
| @@ -2116,7 +2079,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testExternalNavigationWithoutUserGesture() {
|
| final ExternalNavigationHandler externalNavHandler =
|
| new ExternalNavigationHandler(getActivity().getActivityTab());
|
| @@ -2138,7 +2100,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
|
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testSelectionExpansionOnSearchTermResolution()
|
| throws InterruptedException, TimeoutException {
|
| mFakeServer.reset();
|
| @@ -2156,11 +2117,9 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
|
| - @CommandLineFlags
|
| - .Add(ContextualSearchFieldTrial.PEEK_PROMO_ENABLED + "=true")
|
| - @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
|
| - @RetryOnFailure
|
| - public void testLongPressShowsPeekPromo()
|
| + @CommandLineFlags.Add(ContextualSearchFieldTrial.PEEK_PROMO_ENABLED + "=true")
|
| + @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
|
| + public void testLongPressShowsPeekPromo()
|
| throws InterruptedException, TimeoutException {
|
| // Must be in undecided state in order to trigger the Peek Promo.
|
| mPolicy.overrideDecidedStateForTesting(false);
|
| @@ -2201,7 +2160,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
|
| - @RetryOnFailure
|
| public void testTapContentVisibility() throws InterruptedException, TimeoutException {
|
| // Simulate a tap and make sure Content is not visible.
|
| simulateTapSearch("search");
|
| @@ -2280,7 +2238,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
|
| - @RetryOnFailure
|
| public void testLongPressMultipleSwipeOnlyLoadsContentOnce()
|
| throws InterruptedException, TimeoutException {
|
| // Simulate a long press and make sure no Content is created.
|
| @@ -2316,7 +2273,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testChainedSearchCreatesNewContent() throws InterruptedException, TimeoutException {
|
| // Simulate a tap and make sure Content is not visible.
|
| simulateTapSearch("search");
|
| @@ -2399,7 +2355,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testChainedSearchContentVisibility() throws InterruptedException, TimeoutException {
|
| // Simulate a tap and make sure Content is not visible.
|
| simulateTapSearch("search");
|
| @@ -2433,7 +2388,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testTapCloseRemovedFromHistory() throws InterruptedException, TimeoutException {
|
| // Simulate a tap and make sure a URL was loaded.
|
| simulateTapSearch("search");
|
| @@ -2474,7 +2428,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testChainedTapsRemovedFromHistory() throws InterruptedException, TimeoutException {
|
| // Simulate a tap and make sure a URL was loaded.
|
| simulateTapSearch("search");
|
| @@ -2515,7 +2468,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| @CommandLineFlags.Add(ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true")
|
| - @RetryOnFailure
|
| public void testTapWithLanguage() throws InterruptedException, TimeoutException {
|
| // Tapping a German word should trigger translation.
|
| simulateTapSearch("german");
|
| @@ -2548,7 +2500,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @Feature({"ContextualSearch"})
|
| @CommandLineFlags.Add({ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true",
|
| ContextualSearchFieldTrial.ENABLE_SERVER_CONTROLLED_ONEBOX + "=true"})
|
| - @RetryOnFailure
|
| public void testTapWithoutLanguageCanBeForced() throws InterruptedException, TimeoutException {
|
| // Tapping an English word should trigger translation.
|
| simulateTapSearch("search");
|
| @@ -2563,7 +2514,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| @CommandLineFlags.Add(ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true")
|
| - @RetryOnFailure
|
| public void testLongpressTranslates() throws InterruptedException, TimeoutException {
|
| // LongPress on any word should trigger translation.
|
| simulateLongPressSearch("search");
|
| @@ -2579,7 +2529,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @Feature({"ContextualSearch"})
|
| @CommandLineFlags.Add({ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true",
|
| ContextualSearchFieldTrial.DISABLE_AUTO_DETECT_TRANSLATION_ONEBOX + "=true"})
|
| - @RetryOnFailure
|
| public void testLongpressAutoDetectDisabledDoesNotTranslate()
|
| throws InterruptedException, TimeoutException {
|
| // Unless disabled, LongPress on any word should trigger translation.
|
| @@ -2596,7 +2545,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| @Feature({"ContextualSearch"})
|
| @CommandLineFlags.Add({ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true",
|
| ContextualSearchFieldTrial.DISABLE_FORCE_TRANSLATION_ONEBOX + "=true"})
|
| - @RetryOnFailure
|
| public void testLongpressTranslateDisabledDoesNotTranslate()
|
| throws InterruptedException, TimeoutException {
|
| // Unless disabled, LongPress on any word should trigger translation.
|
| @@ -2637,7 +2585,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| public void testPanelDismissedOnToggleFullscreen()
|
| throws InterruptedException, TimeoutException {
|
| // Simulate a tap and assert that the panel peeks.
|
| @@ -2717,7 +2664,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure
|
| // NOTE: Remove the flag so we will run just this test with onLine detection enabled.
|
| @CommandLineFlags.Remove(ContextualSearchFieldTrial.ONLINE_DETECTION_DISABLED)
|
| public void testNetworkDisconnectedDeactivatesSearch()
|
| @@ -2743,7 +2689,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
|
| */
|
| @SmallTest
|
| @Feature({"ContextualSearch"})
|
| - @RetryOnFailure // crbug.com/673681
|
| public void testQuickActionCaptionAndImage() throws InterruptedException, TimeoutException {
|
| // Simulate a tap to show the Bar, then set the quick action data.
|
| simulateTapSearch("search");
|
|
|