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

Unified Diff: ui/aura/gestures/gesture_recognizer_unittest.cc

Issue 11065050: The center of a rect is x+width/2, y+height/2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months 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
Index: ui/aura/gestures/gesture_recognizer_unittest.cc
diff --git a/ui/aura/gestures/gesture_recognizer_unittest.cc b/ui/aura/gestures/gesture_recognizer_unittest.cc
index 788fbf47e06af0f91daffafb35d2744434e3cdad..22cab46ce46efbd23543191f46be62f2ee15b123 100644
--- a/ui/aura/gestures/gesture_recognizer_unittest.cc
+++ b/ui/aura/gestures/gesture_recognizer_unittest.cc
@@ -571,8 +571,8 @@ TEST_F(GestureRecognizerTest, GestureEventTapRegion) {
gfx::Point actual_point(delegate->tap_location());
EXPECT_EQ(24, delegate->bounding_box().width());
EXPECT_EQ(24, delegate->bounding_box().height());
- EXPECT_EQ(100, actual_point.x());
- EXPECT_EQ(200, actual_point.y());
+ EXPECT_EQ(101, actual_point.x());
+ EXPECT_EQ(201, actual_point.y());
}
// Test with no ET_TOUCH_MOVED events but different touch points and radii.
@@ -615,8 +615,8 @@ TEST_F(GestureRecognizerTest, GestureEventTapRegion) {
gfx::Point actual_point(delegate->tap_location());
EXPECT_EQ(40, delegate->bounding_box().width());
EXPECT_EQ(40, delegate->bounding_box().height());
- EXPECT_EQ(366, actual_point.x());
- EXPECT_EQ(290, actual_point.y());
+ EXPECT_EQ(367, actual_point.x());
+ EXPECT_EQ(291, actual_point.y());
}
// Test with a single ET_TOUCH_MOVED event.
@@ -678,7 +678,7 @@ TEST_F(GestureRecognizerTest, GestureEventTapRegion) {
EXPECT_EQ(25, delegate->bounding_box().width());
EXPECT_EQ(24, delegate->bounding_box().height());
EXPECT_EQ(48, actual_point.x());
- EXPECT_EQ(203, actual_point.y());
+ EXPECT_EQ(204, actual_point.y());
}
// Test with a few ET_TOUCH_MOVED events.
@@ -773,7 +773,7 @@ TEST_F(GestureRecognizerTest, GestureEventTapRegion) {
EXPECT_EQ(33, delegate->bounding_box().width());
EXPECT_EQ(32, delegate->bounding_box().height());
EXPECT_EQ(397, actual_point.x());
- EXPECT_EQ(148, actual_point.y());
+ EXPECT_EQ(149, actual_point.y());
}
}

Powered by Google App Engine
This is Rietveld 408576698