diff options
Diffstat (limited to 'ui/aura/root_window_unittest.cc')
-rw-r--r-- | ui/aura/root_window_unittest.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ui/aura/root_window_unittest.cc b/ui/aura/root_window_unittest.cc index 8a5f26f..cc2a857 100644 --- a/ui/aura/root_window_unittest.cc +++ b/ui/aura/root_window_unittest.cc @@ -380,12 +380,24 @@ TEST_F(RootWindowTest, ScrollEventDispatch) { w1->SetBounds(gfx::Rect(20, 20, 40, 40)); // A scroll event on the root-window itself is dispatched. - ui::ScrollEvent scroll1(ui::ET_SCROLL, gfx::Point(10, 10), now, 0, 0, -10, 2); + ui::ScrollEvent scroll1(ui::ET_SCROLL, + gfx::Point(10, 10), + now, + 0, + 0, -10, + 0, -10, + 2); root_window()->AsRootWindowHostDelegate()->OnHostScrollEvent(&scroll1); EXPECT_EQ(1, filter->num_scroll_events()); // Scroll event on a window should be dispatched properly. - ui::ScrollEvent scroll2(ui::ET_SCROLL, gfx::Point(25, 30), now, 0, -10, 0, 2); + ui::ScrollEvent scroll2(ui::ET_SCROLL, + gfx::Point(25, 30), + now, + 0, + -10, 0, + -10, 0, + 2); root_window()->AsRootWindowHostDelegate()->OnHostScrollEvent(&scroll2); EXPECT_EQ(2, filter->num_scroll_events()); } |