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

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

Issue 11415293: Refactor access to scroll deltas in GesturePoint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | ui/base/gestures/gesture_point.h » ('j') | ui/base/gestures/gesture_sequence.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3593b0dc8c9f8264c8b52e038df974691a8c763b..44399dc812760f68498f34ebb0fc7f02c67ec619 100644
--- a/ui/aura/gestures/gesture_recognizer_unittest.cc
+++ b/ui/aura/gestures/gesture_recognizer_unittest.cc
@@ -931,12 +931,13 @@ TEST_F(GestureRecognizerTest, GestureEventScrollBoundingBox) {
// Release the touch. This should end the scroll.
delegate->Reset();
ui::TouchEvent release(ui::ET_TOUCH_RELEASED,
- gfx::Point(kPositionX, kPositionY),
+ gfx::Point(kPositionX + kScrollAmount,
+ kPositionY + kScrollAmount),
kTouchId, press.time_stamp() +
base::TimeDelta::FromMilliseconds(50));
root_window()->AsRootWindowHostDelegate()->OnHostTouchEvent(&release);
- EXPECT_EQ(gfx::Rect(kPositionX - radius,
- kPositionY - radius,
+ EXPECT_EQ(gfx::Rect(kPositionX + kScrollAmount - radius,
+ kPositionY + kScrollAmount - radius,
radius * 2,
radius * 2).ToString(),
delegate->bounding_box().ToString());
« no previous file with comments | « no previous file | ui/base/gestures/gesture_point.h » ('j') | ui/base/gestures/gesture_sequence.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698