Commit 3103023a authored by donnd's avatar donnd Committed by Commit bot

[TTS] Move a test restriction from all tests to the class.

BUG=

Review-Url: https://chromiumcodereview.appspot.com/2441113002
Cr-Commit-Position: refs/heads/master@{#426911}
parent bcb34061
...@@ -80,6 +80,7 @@ import java.util.concurrent.TimeoutException; ...@@ -80,6 +80,7 @@ import java.util.concurrent.TimeoutException;
* Tests the Contextual Search Manager using instrumentation tests. * Tests the Contextual Search Manager using instrumentation tests.
*/ */
// NOTE: Disable online detection so we we'll default to online on test bots with no network. // 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) @CommandLineFlags.Add(ContextualSearchFieldTrial.ONLINE_DETECTION_DISABLED)
public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<ChromeActivity> { public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<ChromeActivity> {
private static final String TEST_PAGE = private static final String TEST_PAGE =
...@@ -1010,7 +1011,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1010,7 +1011,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testHidesWhenOmniboxFocused() throws InterruptedException, TimeoutException { public void testHidesWhenOmniboxFocused() throws InterruptedException, TimeoutException {
clickWordNode("intelligence"); clickWordNode("intelligence");
...@@ -1030,7 +1030,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1030,7 +1030,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testDoesContainAWord() { public void testDoesContainAWord() {
assertTrue(mSelectionController.doesContainAWord("word")); assertTrue(mSelectionController.doesContainAWord("word"));
...@@ -1050,7 +1049,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1050,7 +1049,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testIsValidSelection() { public void testIsValidSelection() {
StubbedContentViewCore stubbedCvc = new StubbedContentViewCore( StubbedContentViewCore stubbedCvc = new StubbedContentViewCore(
...@@ -1075,7 +1073,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1075,7 +1073,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTap() throws InterruptedException, TimeoutException { public void testTap() throws InterruptedException, TimeoutException {
clickWordNode("intelligence"); clickWordNode("intelligence");
...@@ -1092,7 +1089,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1092,7 +1089,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testLongPress() throws InterruptedException, TimeoutException { public void testLongPress() throws InterruptedException, TimeoutException {
longPressNode("states"); longPressNode("states");
...@@ -1108,7 +1104,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1108,7 +1104,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
public void testSwipeExpand() throws InterruptedException, TimeoutException { public void testSwipeExpand() throws InterruptedException, TimeoutException {
assertNoSearchesLoaded(); assertNoSearchesLoaded();
clickWordNode("intelligence"); clickWordNode("intelligence");
...@@ -1134,7 +1130,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1134,7 +1130,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
public void testLongPressSwipeExpand() throws InterruptedException, TimeoutException { public void testLongPressSwipeExpand() throws InterruptedException, TimeoutException {
longPressNode("intelligence"); longPressNode("intelligence");
assertNoContentViewCore(); assertNoContentViewCore();
...@@ -1168,7 +1164,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1168,7 +1164,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({RESTRICTION_TYPE_NON_LOW_END_DEVICE})
public void testTapCausesOneLowPriorityRequest() throws InterruptedException, TimeoutException { public void testTapCausesOneLowPriorityRequest() throws InterruptedException, TimeoutException {
mFakeServer.reset(); mFakeServer.reset();
clickWordNode("states"); clickWordNode("states");
...@@ -1197,7 +1192,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1197,7 +1192,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({RESTRICTION_TYPE_NON_LOW_END_DEVICE})
@RetryOnFailure @RetryOnFailure
public void testPrefetchFailoverRequestMadeAfterOpen() public void testPrefetchFailoverRequestMadeAfterOpen()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -1227,7 +1221,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1227,7 +1221,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTapDisablePreload() throws InterruptedException, TimeoutException { public void testTapDisablePreload() throws InterruptedException, TimeoutException {
clickWordNode("intelligence"); clickWordNode("intelligence");
...@@ -1244,7 +1237,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1244,7 +1237,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testLongPressGestureSelects() throws InterruptedException, TimeoutException { public void testLongPressGestureSelects() throws InterruptedException, TimeoutException {
longPressNode("intelligence"); longPressNode("intelligence");
...@@ -1265,7 +1257,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1265,7 +1257,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTapGestureSelects() throws InterruptedException, TimeoutException { public void testTapGestureSelects() throws InterruptedException, TimeoutException {
clickWordNode("intelligence"); clickWordNode("intelligence");
...@@ -1284,7 +1275,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1284,7 +1275,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTapGestureOnSpecialCharacterDoesntSelect() public void testTapGestureOnSpecialCharacterDoesntSelect()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -1300,7 +1290,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1300,7 +1290,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTapGestureFollowedByScrollClearsSelection() public void testTapGestureFollowedByScrollClearsSelection()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -1319,7 +1308,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1319,7 +1308,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTapGestureFollowedByInvalidTextTapCloses() public void testTapGestureFollowedByInvalidTextTapCloses()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -1336,10 +1324,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1336,10 +1324,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTapGestureFollowedByNonTextTap() public void testTapGestureFollowedByNonTextTap() throws InterruptedException, TimeoutException {
throws InterruptedException, TimeoutException {
clickWordNode("states-far"); clickWordNode("states-far");
waitForPanelToPeek(); waitForPanelToPeek();
clickNode("button"); clickNode("button");
...@@ -1351,7 +1337,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1351,7 +1337,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTapGestureFarAwayTogglesSelecting() public void testTapGestureFarAwayTogglesSelecting()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -1373,10 +1358,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1373,10 +1358,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTapGesturesNearbyKeepSelecting() public void testTapGesturesNearbyKeepSelecting() throws InterruptedException, TimeoutException {
throws InterruptedException, TimeoutException {
clickWordNode("states"); clickWordNode("states");
assertEquals("States", getSelectedText()); assertEquals("States", getSelectedText());
waitForPanelToPeek(); waitForPanelToPeek();
...@@ -1401,7 +1384,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1401,7 +1384,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
public void testLongPressGestureFollowedByScrollMaintainsSelection() public void testLongPressGestureFollowedByScrollMaintainsSelection()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
longPressNode("intelligence"); longPressNode("intelligence");
...@@ -1417,7 +1399,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1417,7 +1399,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
public void testLongPressGestureFollowedByTapDoesntSelect() public void testLongPressGestureFollowedByTapDoesntSelect()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
longPressNode("intelligence"); longPressNode("intelligence");
...@@ -1432,7 +1413,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1432,7 +1413,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
public void testContextualSearchDismissedOnForegroundTabCrash() public void testContextualSearchDismissedOnForegroundTabCrash()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
clickWordNode("states"); clickWordNode("states");
...@@ -1463,7 +1443,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1463,7 +1443,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testContextualSearchNotDismissedOnBackgroundTabCrash() public void testContextualSearchNotDismissedOnBackgroundTabCrash()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -1500,7 +1480,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1500,7 +1480,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({RESTRICTION_TYPE_NON_LOW_END_DEVICE})
@RetryOnFailure @RetryOnFailure
public void testTapSearchBarPromotesToTab() throws InterruptedException, TimeoutException { public void testTapSearchBarPromotesToTab() throws InterruptedException, TimeoutException {
// -------- SET UP --------- // -------- SET UP ---------
...@@ -1548,7 +1527,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1548,7 +1527,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
public void testTapOnRoleIgnored() throws InterruptedException, TimeoutException { public void testTapOnRoleIgnored() throws InterruptedException, TimeoutException {
PanelState initialState = mPanel.getPanelState(); PanelState initialState = mPanel.getPanelState();
clickNode("role"); clickNode("role");
...@@ -1561,7 +1539,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1561,7 +1539,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTapOnARIAIgnored() throws InterruptedException, TimeoutException { public void testTapOnARIAIgnored() throws InterruptedException, TimeoutException {
PanelState initialState = mPanel.getPanelState(); PanelState initialState = mPanel.getPanelState();
...@@ -1574,7 +1551,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1574,7 +1551,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTapOnFocusableIgnored() throws InterruptedException, TimeoutException { public void testTapOnFocusableIgnored() throws InterruptedException, TimeoutException {
PanelState initialState = mPanel.getPanelState(); PanelState initialState = mPanel.getPanelState();
...@@ -1587,7 +1563,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1587,7 +1563,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
@DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533") @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
@RetryOnFailure @RetryOnFailure
public void testTapLimitForDecided() throws InterruptedException, TimeoutException { public void testTapLimitForDecided() throws InterruptedException, TimeoutException {
...@@ -1617,7 +1593,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1617,7 +1593,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
@DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533") @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
@RetryOnFailure @RetryOnFailure
public void testTapLimitForUndecided() throws InterruptedException, TimeoutException { public void testTapLimitForUndecided() throws InterruptedException, TimeoutException {
...@@ -1650,7 +1626,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1650,7 +1626,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({RESTRICTION_TYPE_NON_LOW_END_DEVICE})
@RetryOnFailure @RetryOnFailure
public void testExpandBeforeSearchTermResolution() public void testExpandBeforeSearchTermResolution()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -1675,7 +1650,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1675,7 +1650,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({RESTRICTION_TYPE_NON_LOW_END_DEVICE})
@RetryOnFailure @RetryOnFailure
public void testSearchTermResolutionError() throws InterruptedException, TimeoutException { public void testSearchTermResolutionError() throws InterruptedException, TimeoutException {
clickWordNode("states"); clickWordNode("states");
...@@ -1695,7 +1669,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1695,7 +1669,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testHttpsBeforeAcceptForOptOut() throws InterruptedException, TimeoutException { public void testHttpsBeforeAcceptForOptOut() throws InterruptedException, TimeoutException {
mPolicy.overrideDecidedStateForTesting(false); mPolicy.overrideDecidedStateForTesting(false);
...@@ -1711,7 +1684,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1711,7 +1684,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testHttpsAfterAcceptForOptOut() throws InterruptedException, TimeoutException { public void testHttpsAfterAcceptForOptOut() throws InterruptedException, TimeoutException {
mPolicy.overrideDecidedStateForTesting(true); mPolicy.overrideDecidedStateForTesting(true);
...@@ -1725,7 +1697,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1725,7 +1697,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testHttpBeforeAcceptForOptOut() throws InterruptedException, TimeoutException { public void testHttpBeforeAcceptForOptOut() throws InterruptedException, TimeoutException {
mPolicy.overrideDecidedStateForTesting(false); mPolicy.overrideDecidedStateForTesting(false);
...@@ -1738,7 +1709,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1738,7 +1709,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testHttpAfterAcceptForOptOut() throws InterruptedException, TimeoutException { public void testHttpAfterAcceptForOptOut() throws InterruptedException, TimeoutException {
mPolicy.overrideDecidedStateForTesting(true); mPolicy.overrideDecidedStateForTesting(true);
...@@ -1775,7 +1745,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1775,7 +1745,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
@RetryOnFailure @RetryOnFailure
@DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533") @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
public void testAppMenuSuppressedWhenExpanded() throws InterruptedException, TimeoutException { public void testAppMenuSuppressedWhenExpanded() throws InterruptedException, TimeoutException {
...@@ -1796,7 +1766,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1796,7 +1766,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testAppMenuSuppressedWhenMaximized() throws InterruptedException, TimeoutException { public void testAppMenuSuppressedWhenMaximized() throws InterruptedException, TimeoutException {
clickWordNode("states"); clickWordNode("states");
...@@ -1824,7 +1793,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1824,7 +1793,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({RESTRICTION_TYPE_NON_LOW_END_DEVICE})
@RetryOnFailure @RetryOnFailure
public void testPromoTapCount() throws InterruptedException, TimeoutException { public void testPromoTapCount() throws InterruptedException, TimeoutException {
mPolicy.setPromoTapTriggeredLimitForTesting(2); mPolicy.setPromoTapTriggeredLimitForTesting(2);
...@@ -1870,7 +1838,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1870,7 +1838,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
@DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533") @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
public void testPromoOpenCountForUndecided() throws InterruptedException, TimeoutException { public void testPromoOpenCountForUndecided() throws InterruptedException, TimeoutException {
mPolicy.overrideDecidedStateForTesting(false); mPolicy.overrideDecidedStateForTesting(false);
...@@ -1898,7 +1866,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1898,7 +1866,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
@DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533") @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
@RetryOnFailure @RetryOnFailure
public void testPromoOpenCountForDecided() throws InterruptedException, TimeoutException { public void testPromoOpenCountForDecided() throws InterruptedException, TimeoutException {
...@@ -1917,7 +1885,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1917,7 +1885,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
* @SmallTest * @SmallTest
* @Feature({"ContextualSearch"}) * @Feature({"ContextualSearch"})
*/ */
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@FlakyTest @FlakyTest
public void testTapCount() throws InterruptedException, TimeoutException { public void testTapCount() throws InterruptedException, TimeoutException {
assertEquals(0, mPolicy.getTapCount()); assertEquals(0, mPolicy.getTapCount());
...@@ -1956,7 +1923,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1956,7 +1923,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
@RetryOnFailure @RetryOnFailure
public void testNotifyObserverHideAfterLongPress() public void testNotifyObserverHideAfterLongPress()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -1975,7 +1942,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -1975,7 +1942,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
public void testNotifyObserverHideAfterTap() throws InterruptedException, TimeoutException { public void testNotifyObserverHideAfterTap() throws InterruptedException, TimeoutException {
TestContextualSearchObserver observer = new TestContextualSearchObserver(); TestContextualSearchObserver observer = new TestContextualSearchObserver();
mManager.addObserver(observer); mManager.addObserver(observer);
...@@ -2008,7 +1975,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2008,7 +1975,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testNotifyObserverHideOnClearSelectionAfterTap() public void testNotifyObserverHideOnClearSelectionAfterTap()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -2039,7 +2005,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2039,7 +2005,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testPreventHandlingCurrentSelectionModification() public void testPreventHandlingCurrentSelectionModification()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -2068,7 +2033,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2068,7 +2033,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@CommandLineFlags.Add(ContextualSearchFieldTrial.SUPPRESSION_TAPS + "=" + PLENTY_OF_TAPS) @CommandLineFlags.Add(ContextualSearchFieldTrial.SUPPRESSION_TAPS + "=" + PLENTY_OF_TAPS)
@RetryOnFailure @RetryOnFailure
public void testTapALot() throws InterruptedException, TimeoutException { public void testTapALot() throws InterruptedException, TimeoutException {
...@@ -2087,7 +2051,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2087,7 +2051,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
public void testExternalNavigationWithUserGesture() { public void testExternalNavigationWithUserGesture() {
final ExternalNavigationHandler externalNavHandler = final ExternalNavigationHandler externalNavHandler =
new ExternalNavigationHandler(getActivity().getActivityTab()); new ExternalNavigationHandler(getActivity().getActivityTab());
...@@ -2113,7 +2076,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2113,7 +2076,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testRedirectedExternalNavigationWithUserGesture() { public void testRedirectedExternalNavigationWithUserGesture() {
final ExternalNavigationHandler externalNavHandler = final ExternalNavigationHandler externalNavHandler =
...@@ -2148,7 +2110,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2148,7 +2110,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testExternalNavigationWithoutUserGesture() { public void testExternalNavigationWithoutUserGesture() {
final ExternalNavigationHandler externalNavHandler = final ExternalNavigationHandler externalNavHandler =
...@@ -2171,7 +2132,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2171,7 +2132,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testSelectionExpansionOnSearchTermResolution() public void testSelectionExpansionOnSearchTermResolution()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -2189,11 +2149,13 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2189,11 +2149,13 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
@CommandLineFlags.Add(ContextualSearchFieldTrial.PEEK_PROMO_ENABLED + "=true") @CommandLineFlags
.Add(ContextualSearchFieldTrial.PEEK_PROMO_ENABLED + "=true")
@DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533") @DisableIf.Build(supported_abis_includes = "arm64-v8a", message = "crbug.com/596533")
@RetryOnFailure @RetryOnFailure
public void testLongPressShowsPeekPromo() throws InterruptedException, TimeoutException { public void testLongPressShowsPeekPromo()
throws InterruptedException, TimeoutException {
// Must be in undecided state in order to trigger the Peek Promo. // Must be in undecided state in order to trigger the Peek Promo.
mPolicy.overrideDecidedStateForTesting(false); mPolicy.overrideDecidedStateForTesting(false);
// Must have never opened the Panel in order to trigger the Peek Promo. // Must have never opened the Panel in order to trigger the Peek Promo.
...@@ -2232,7 +2194,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2232,7 +2194,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
@RetryOnFailure @RetryOnFailure
public void testTapContentVisibility() throws InterruptedException, TimeoutException { public void testTapContentVisibility() throws InterruptedException, TimeoutException {
// Simulate a tap and make sure Content is not visible. // Simulate a tap and make sure Content is not visible.
...@@ -2254,7 +2216,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2254,7 +2216,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
public void testLongPressContentVisibility() throws InterruptedException, TimeoutException { public void testLongPressContentVisibility() throws InterruptedException, TimeoutException {
// Simulate a long press and make sure no Content is created. // Simulate a long press and make sure no Content is created.
simulateLongPressSearch("search"); simulateLongPressSearch("search");
...@@ -2276,7 +2238,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2276,7 +2238,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
public void testTapMultipleSwipeOnlyLoadsContentOnce() public void testTapMultipleSwipeOnlyLoadsContentOnce()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
// Simulate a tap and make sure Content is not visible. // Simulate a tap and make sure Content is not visible.
...@@ -2311,7 +2273,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2311,7 +2273,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
@RetryOnFailure @RetryOnFailure
public void testLongPressMultipleSwipeOnlyLoadsContentOnce() public void testLongPressMultipleSwipeOnlyLoadsContentOnce()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -2348,10 +2310,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2348,10 +2310,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testChainedSearchCreatesNewContent() public void testChainedSearchCreatesNewContent() throws InterruptedException, TimeoutException {
throws InterruptedException, TimeoutException {
// Simulate a tap and make sure Content is not visible. // Simulate a tap and make sure Content is not visible.
simulateTapSearch("search"); simulateTapSearch("search");
assertContentViewCoreCreatedButNeverMadeVisible(); assertContentViewCoreCreatedButNeverMadeVisible();
...@@ -2388,7 +2348,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2388,7 +2348,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
@DisabledTest(message = "crbug.com/551711") @DisabledTest(message = "crbug.com/551711")
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
public void testChainedSearchLoadsCorrectSearchTerm() public void testChainedSearchLoadsCorrectSearchTerm()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
// Simulate a tap and make sure Content is not visible. // Simulate a tap and make sure Content is not visible.
...@@ -2433,7 +2393,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2433,7 +2393,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({RESTRICTION_TYPE_NON_LOW_END_DEVICE})
@RetryOnFailure @RetryOnFailure
public void testChainedSearchContentVisibility() throws InterruptedException, TimeoutException { public void testChainedSearchContentVisibility() throws InterruptedException, TimeoutException {
// Simulate a tap and make sure Content is not visible. // Simulate a tap and make sure Content is not visible.
...@@ -2468,10 +2427,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2468,10 +2427,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testTapCloseRemovedFromHistory() public void testTapCloseRemovedFromHistory() throws InterruptedException, TimeoutException {
throws InterruptedException, TimeoutException {
// Simulate a tap and make sure a URL was loaded. // Simulate a tap and make sure a URL was loaded.
simulateTapSearch("search"); simulateTapSearch("search");
assertEquals(1, mFakeServer.getLoadedUrlCount()); assertEquals(1, mFakeServer.getLoadedUrlCount());
...@@ -2489,9 +2446,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2489,9 +2446,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
public void testTapExpandNotRemovedFromHistory() public void testTapExpandNotRemovedFromHistory() throws InterruptedException, TimeoutException {
throws InterruptedException, TimeoutException {
// Simulate a tap and make sure a URL was loaded. // Simulate a tap and make sure a URL was loaded.
simulateTapSearch("search"); simulateTapSearch("search");
assertEquals(1, mFakeServer.getLoadedUrlCount()); assertEquals(1, mFakeServer.getLoadedUrlCount());
...@@ -2512,10 +2468,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2512,10 +2468,8 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@RetryOnFailure @RetryOnFailure
public void testChainedTapsRemovedFromHistory() public void testChainedTapsRemovedFromHistory() throws InterruptedException, TimeoutException {
throws InterruptedException, TimeoutException {
// Simulate a tap and make sure a URL was loaded. // Simulate a tap and make sure a URL was loaded.
simulateTapSearch("search"); simulateTapSearch("search");
String url1 = mFakeServer.getLoadedUrl(); String url1 = mFakeServer.getLoadedUrl();
...@@ -2554,7 +2508,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2554,7 +2508,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@CommandLineFlags.Add(ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true") @CommandLineFlags.Add(ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true")
@RetryOnFailure @RetryOnFailure
public void testTapWithLanguage() throws InterruptedException, TimeoutException { public void testTapWithLanguage() throws InterruptedException, TimeoutException {
...@@ -2572,7 +2525,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2572,7 +2525,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@CommandLineFlags.Add(ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true") @CommandLineFlags.Add(ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true")
public void testTapWithoutLanguage() throws InterruptedException, TimeoutException { public void testTapWithoutLanguage() throws InterruptedException, TimeoutException {
// Tapping an English word should NOT trigger translation. // Tapping an English word should NOT trigger translation.
...@@ -2588,7 +2540,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2588,7 +2540,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@CommandLineFlags.Add({ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true", @CommandLineFlags.Add({ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true",
ContextualSearchFieldTrial.ENABLE_SERVER_CONTROLLED_ONEBOX + "=true"}) ContextualSearchFieldTrial.ENABLE_SERVER_CONTROLLED_ONEBOX + "=true"})
@RetryOnFailure @RetryOnFailure
...@@ -2605,7 +2556,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2605,7 +2556,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@CommandLineFlags.Add(ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true") @CommandLineFlags.Add(ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true")
@RetryOnFailure @RetryOnFailure
public void testLongpressTranslates() throws InterruptedException, TimeoutException { public void testLongpressTranslates() throws InterruptedException, TimeoutException {
...@@ -2621,7 +2571,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2621,7 +2571,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@CommandLineFlags.Add({ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true", @CommandLineFlags.Add({ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true",
ContextualSearchFieldTrial.DISABLE_AUTO_DETECT_TRANSLATION_ONEBOX + "=true"}) ContextualSearchFieldTrial.DISABLE_AUTO_DETECT_TRANSLATION_ONEBOX + "=true"})
@RetryOnFailure @RetryOnFailure
...@@ -2639,7 +2588,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2639,7 +2588,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
@CommandLineFlags.Add({ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true", @CommandLineFlags.Add({ContextualSearchFieldTrial.ENABLE_TRANSLATION + "=true",
ContextualSearchFieldTrial.DISABLE_FORCE_TRANSLATION_ONEBOX + "=true"}) ContextualSearchFieldTrial.DISABLE_FORCE_TRANSLATION_ONEBOX + "=true"})
@RetryOnFailure @RetryOnFailure
...@@ -2659,7 +2607,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2659,7 +2607,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({ChromeRestriction.RESTRICTION_TYPE_PHONE, RESTRICTION_TYPE_NON_LOW_END_DEVICE}) @Restriction(ChromeRestriction.RESTRICTION_TYPE_PHONE)
public void testTapContentAndExpandPanelInFullscreen() public void testTapContentAndExpandPanelInFullscreen()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
// Toggle tab to fulllscreen. // Toggle tab to fulllscreen.
...@@ -2683,7 +2631,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2683,7 +2631,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction({RESTRICTION_TYPE_NON_LOW_END_DEVICE})
@RetryOnFailure @RetryOnFailure
public void testPanelDismissedOnToggleFullscreen() public void testPanelDismissedOnToggleFullscreen()
throws InterruptedException, TimeoutException { throws InterruptedException, TimeoutException {
...@@ -2713,7 +2660,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2713,7 +2660,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
public void testImageControl() throws InterruptedException, TimeoutException { public void testImageControl() throws InterruptedException, TimeoutException {
simulateTapSearch("search"); simulateTapSearch("search");
...@@ -2755,7 +2701,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro ...@@ -2755,7 +2701,6 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
*/ */
@SmallTest @SmallTest
@Feature({"ContextualSearch"}) @Feature({"ContextualSearch"})
@Restriction(RESTRICTION_TYPE_NON_LOW_END_DEVICE)
// NOTE: Remove the flag so we will run just this test with onLine detection enabled. // NOTE: Remove the flag so we will run just this test with onLine detection enabled.
@CommandLineFlags.Remove(ContextualSearchFieldTrial.ONLINE_DETECTION_DISABLED) @CommandLineFlags.Remove(ContextualSearchFieldTrial.ONLINE_DETECTION_DISABLED)
public void testNetworkDisconnectedDeactivatesSearch() public void testNetworkDisconnectedDeactivatesSearch()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment