Commit 27844bb9 authored by Robert Liao's avatar Robert Liao Committed by Commit Bot

Disable Touch Tests on OmniboxViewViewsTest for MacOS

MacOS does not support touch.

BUG=817419

Change-Id: I0f55fe32735d1150ec8ff1191f2e8cdee72e36ee
Reviewed-on: https://chromium-review.googlesource.com/967546Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Robert Liao <robliao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#544163}
parent 42f5dd51
......@@ -263,7 +263,13 @@ IN_PROC_BROWSER_TEST_F(OmniboxViewViewsTest, SelectionClipboard) {
}
#endif // OS_LINUX && !OS_CHROMEOS
IN_PROC_BROWSER_TEST_F(OmniboxViewViewsTest, SelectAllOnTap) {
// MacOS does not support touch.
#if defined(OS_MACOSX)
#define MAYBE_SelectAllOnTap DISABLED_SelectAllOnTap
#else
#define MAYBE_SelectAllOnTap SelectAllOnTap
#endif
IN_PROC_BROWSER_TEST_F(OmniboxViewViewsTest, MAYBE_SelectAllOnTap) {
OmniboxView* omnibox_view = NULL;
ASSERT_NO_FATAL_FAILURE(GetOmniboxViewForBrowser(browser(), &omnibox_view));
omnibox_view->SetUserText(base::ASCIIToUTF16("http://www.google.com/"));
......@@ -436,9 +442,17 @@ IN_PROC_BROWSER_TEST_F(OmniboxViewViewsTest, BackgroundIsOpaque) {
EXPECT_FALSE(view->GetRenderText()->subpixel_rendering_suppressed());
}
// MacOS does not support touch.
#if defined(OS_MACOSX)
#define MAYBE_DeactivateTouchEditingOnExecuteCommand \
DISABLED_DeactivateTouchEditingOnExecuteCommand
#else
#define MAYBE_DeactivateTouchEditingOnExecuteCommand \
DeactivateTouchEditingOnExecuteCommand
#endif
// Tests if executing a command hides touch editing handles.
IN_PROC_BROWSER_TEST_F(OmniboxViewViewsTest,
DeactivateTouchEditingOnExecuteCommand) {
MAYBE_DeactivateTouchEditingOnExecuteCommand) {
OmniboxView* view = NULL;
ASSERT_NO_FATAL_FAILURE(GetOmniboxViewForBrowser(browser(), &view));
OmniboxViewViews* omnibox_view_views = static_cast<OmniboxViewViews*>(view);
......
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