Commit 27b71b7b authored by Jinsuk Kim's avatar Jinsuk Kim Committed by Commit Bot

Android: Mark a failing test as phone-only one

The reported failing test is a new one that's supposed to run on
phone only, but was not annotated accordingly. This CL fixes that.

Bug: 1147228
Change-Id: I61d8d0f68bd11fd3112a02a8b272237708010c99
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2526663
Commit-Queue: Theresa  <twellington@chromium.org>
Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826331}
parent e7ec2222
...@@ -19,6 +19,7 @@ import org.junit.runner.RunWith; ...@@ -19,6 +19,7 @@ import org.junit.runner.RunWith;
import org.chromium.base.ApiCompatibilityUtils; import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.base.test.util.CommandLineFlags; import org.chromium.base.test.util.CommandLineFlags;
import org.chromium.base.test.util.Feature; import org.chromium.base.test.util.Feature;
import org.chromium.base.test.util.Restriction;
import org.chromium.chrome.R; import org.chromium.chrome.R;
import org.chromium.chrome.browser.feed.v1.DataFilePath; import org.chromium.chrome.browser.feed.v1.DataFilePath;
import org.chromium.chrome.browser.feed.v1.FeedDataInjectRule; import org.chromium.chrome.browser.feed.v1.FeedDataInjectRule;
...@@ -33,6 +34,7 @@ import org.chromium.chrome.test.util.browser.suggestions.SuggestionsDependencies ...@@ -33,6 +34,7 @@ import org.chromium.chrome.test.util.browser.suggestions.SuggestionsDependencies
import org.chromium.components.browser_ui.styles.ChromeColors; import org.chromium.components.browser_ui.styles.ChromeColors;
import org.chromium.components.browser_ui.widget.RecyclerViewTestUtils; import org.chromium.components.browser_ui.widget.RecyclerViewTestUtils;
import org.chromium.components.embedder_support.util.UrlConstants; import org.chromium.components.embedder_support.util.UrlConstants;
import org.chromium.ui.test.util.UiRestriction;
/** /**
* Tests for colors used in UI components in the native android New Tab Page. * Tests for colors used in UI components in the native android New Tab Page.
...@@ -75,6 +77,7 @@ public class NewTabPageColorTest { ...@@ -75,6 +77,7 @@ public class NewTabPageColorTest {
// clang-format off // clang-format off
@Test @Test
@MediumTest @MediumTest
@Restriction(UiRestriction.RESTRICTION_TYPE_PHONE)
@Feature({"NewTabPage", "FeedNewTabPage"}) @Feature({"NewTabPage", "FeedNewTabPage"})
@Features.EnableFeatures({ChromeFeatureList.INTEREST_FEED_CONTENT_SUGGESTIONS, @Features.EnableFeatures({ChromeFeatureList.INTEREST_FEED_CONTENT_SUGGESTIONS,
ChromeFeatureList.OMNIBOX_SEARCH_ENGINE_LOGO}) ChromeFeatureList.OMNIBOX_SEARCH_ENGINE_LOGO})
......
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