summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-13 23:34:24 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-13 23:34:24 +0000
commitd1a5941efcd68dddd76d411f276353f34bb93f76 (patch)
tree95030e03f2e5dd16b0fab9da3b8fc4bd64d25b96 /chrome/browser/views
parent874755ab46efe9e3b84b4c6b479e5dc813e93445 (diff)
downloadchromium_src-d1a5941efcd68dddd76d411f276353f34bb93f76.zip
chromium_src-d1a5941efcd68dddd76d411f276353f34bb93f76.tar.gz
chromium_src-d1a5941efcd68dddd76d411f276353f34bb93f76.tar.bz2
linux: More automation porting.
I have verified that this is working on Linux, but still have yet to enable any new automated tests. Baby steps. BUG=19076 Review URL: http://codereview.chromium.org/164446 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/find_bar_win_interactive_uitest.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/views/find_bar_win_interactive_uitest.cc b/chrome/browser/views/find_bar_win_interactive_uitest.cc
index 43ad35c..75f10d5 100644
--- a/chrome/browser/views/find_bar_win_interactive_uitest.cc
+++ b/chrome/browser/views/find_bar_win_interactive_uitest.cc
@@ -38,8 +38,7 @@ bool ActivateTabByClick(AutomationProxy* automation,
if (!browser_window->GetViewBounds(VIEW_ID_TAB_0 + tab_index, &bounds, true))
return false;
- POINT click(bounds.CenterPoint().ToPOINT());
- if (!browser_window->SimulateOSClick(click,
+ if (!browser_window->SimulateOSClick(bounds.CenterPoint(),
views::Event::EF_LEFT_BUTTON_DOWN))
return false;
@@ -83,8 +82,7 @@ TEST_F(FindInPageTest, CrashEscHandlers) {
// Click on the location bar so that Find box loses focus.
gfx::Rect bounds;
EXPECT_TRUE(window->GetViewBounds(VIEW_ID_LOCATION_BAR, &bounds, false));
- POINT click(bounds.CenterPoint().ToPOINT());
- EXPECT_TRUE(window->SimulateOSClick(click,
+ EXPECT_TRUE(window->SimulateOSClick(bounds.CenterPoint(),
views::Event::EF_LEFT_BUTTON_DOWN));
::Sleep(kActionDelayMs);
int focused_view_id;