diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 21:51:51 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 21:51:51 +0000 |
commit | e4607f05bbe9090122ec35e449969d2cf6cbdbae (patch) | |
tree | 5545bf30764079518b076b40adaf0061359b4744 /views/view_unittest.cc | |
parent | 7126016c71db5fcf3fd566d84e3b3db6946ebd5d (diff) | |
download | chromium_src-e4607f05bbe9090122ec35e449969d2cf6cbdbae.zip chromium_src-e4607f05bbe9090122ec35e449969d2cf6cbdbae.tar.gz chromium_src-e4607f05bbe9090122ec35e449969d2cf6cbdbae.tar.bz2 |
Use GetEventHandlerForPoint instead of GetViewForPoint.
BUG=74121
TEST=none
Review URL: http://codereview.chromium.org/6575050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76102 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view_unittest.cc')
-rw-r--r-- | views/view_unittest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/views/view_unittest.cc b/views/view_unittest.cc index 2430cb1..8207c76b 100644 --- a/views/view_unittest.cc +++ b/views/view_unittest.cc @@ -792,11 +792,11 @@ TEST_F(ViewTest, HitTestMasks) { EXPECT_TRUE(v1->HitTest(ConvertPointToView(v1, v1_origin))); EXPECT_FALSE(v2->HitTest(ConvertPointToView(v2, v2_origin))); - // Test GetViewForPoint - EXPECT_EQ(v1, root_view->GetViewForPoint(v1_centerpoint)); - EXPECT_EQ(v2, root_view->GetViewForPoint(v2_centerpoint)); - EXPECT_EQ(v1, root_view->GetViewForPoint(v1_origin)); - EXPECT_EQ(root_view, root_view->GetViewForPoint(v2_origin)); + // Test GetEventHandlerForPoint + EXPECT_EQ(v1, root_view->GetEventHandlerForPoint(v1_centerpoint)); + EXPECT_EQ(v2, root_view->GetEventHandlerForPoint(v2_centerpoint)); + EXPECT_EQ(v1, root_view->GetEventHandlerForPoint(v1_origin)); + EXPECT_EQ(root_view, root_view->GetEventHandlerForPoint(v2_origin)); } TEST_F(ViewTest, Textfield) { |