Commit 1e42f9c7 authored by Lan Wei's avatar Lan Wei Committed by Commit Bot

Disable some mac tests in WebInputEventBuilderMacTest

In WebInputEventBuilderMacTest class, we have some tests to set the
events' properties like rotation, tilt, twist, but it is not support on
Mac version of 10.12, we will disable these tests on
MAC_OS_X_VERSION_10_12.

Bug: 992915
Change-Id: I48c0f97d6801d48a25d6469172dfc3bc4e6f1a59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1749451Reviewed-by: default avatarNavid Zolghadr <nzolghadr@chromium.org>
Commit-Queue: Lan Wei <lanwei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#686063}
parent d9c691ae
......@@ -674,6 +674,7 @@ TEST(WebInputEventBuilderMacTest, ScrollWheelMatchesUIEvent) {
[window close];
}
#if !defined(MAC_OS_X_VERSION_10_12)
// Test if the value of twist and rotation_angle are set correctly when the
// NSEvent's rotation is less than 90.
TEST(WebInputEventBuilderMacTest, TouchEventsWithPointerTypePenRotationLess90) {
......@@ -781,6 +782,7 @@ TEST(WebInputEventBuilderMacTest, BuildWebTouchEvents) {
EXPECT_EQ(60, touch_event.touches[0].twist);
EXPECT_FLOAT_EQ(60.0, touch_event.touches[0].rotation_angle);
}
#endif // MAC_OS_X_VERSION_10_12
// Test if the mouse back button values of a WebMouseEvent are set correctly.
TEST(WebInputEventBuilderMacTest, BuildWebMouseEventsWithBackButton) {
......
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