Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Unified Diff: content/browser/renderer_host/input/web_input_event_util_unittest.cc

Issue 1499873002: Fix MotionEvent conversion unit test to use valid tilt angles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/web_input_event_util_unittest.cc
diff --git a/content/browser/renderer_host/input/web_input_event_util_unittest.cc b/content/browser/renderer_host/input/web_input_event_util_unittest.cc
index d3dfb3cc182fb9c3296f38c2a565650f75805ddb..61dcbc77f14f29f4a8fffdc676d7f5a202110a41 100644
--- a/content/browser/renderer_host/input/web_input_event_util_unittest.cc
+++ b/content/browser/renderer_host/input/web_input_event_util_unittest.cc
@@ -40,7 +40,7 @@ TEST(WebInputEventUtilTest, MotionEventConversion) {
pointer.pressure = 30;
pointer.touch_minor = 35;
pointer.orientation = static_cast<float>(-M_PI / 2);
- pointer.tilt = static_cast<float>(-M_PI / 3);
+ pointer.tilt = static_cast<float>(M_PI / 3);
for (MotionEvent::ToolType tool_type : tool_types) {
pointer.tool_type = tool_type;
MotionEventGeneric event(
@@ -65,7 +65,7 @@ TEST(WebInputEventUtilTest, MotionEventConversion) {
expected_pointer.rotationAngle = 0.f;
expected_pointer.force = pointer.pressure;
if (tool_type == MotionEvent::TOOL_TYPE_STYLUS) {
- expected_pointer.tiltX = -60;
+ expected_pointer.tiltX = 60;
expected_pointer.tiltY = 0;
} else {
expected_pointer.tiltX = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698