diff options
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/automation/automation_proxy_uitest.cc | 2 | ||||
-rw-r--r-- | chrome/test/reliability/automated_ui_test_base.cc | 4 | ||||
-rw-r--r-- | chrome/test/ui/history_uitest.cc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/chrome/test/automation/automation_proxy_uitest.cc b/chrome/test/automation/automation_proxy_uitest.cc index 8a1158d6..ebfe25e 100644 --- a/chrome/test/automation/automation_proxy_uitest.cc +++ b/chrome/test/automation/automation_proxy_uitest.cc @@ -199,7 +199,7 @@ TEST_F(AutomationProxyVisibleTest, MAYBE_WindowGetViewBounds) { start.y = bounds.y() + bounds.height() / 2; end.x = start.x + 2 * bounds.width() / 3; end.y = start.y; - ASSERT_TRUE(browser->SimulateDrag(start, end, ui::EF_LEFT_BUTTON_DOWN)); + ASSERT_TRUE(browser->SimulateDrag(start, end, ui::EF_LEFT_MOUSE_BUTTON)); // Check to see that the drag event successfully swapped the two tabs. tab1 = browser->GetTab(0); diff --git a/chrome/test/reliability/automated_ui_test_base.cc b/chrome/test/reliability/automated_ui_test_base.cc index 95a93c8..87a3311 100644 --- a/chrome/test/reliability/automated_ui_test_base.cc +++ b/chrome/test/reliability/automated_ui_test_base.cc @@ -141,7 +141,7 @@ bool AutomatedUITestBase::DragTabOut() { end.set_x(start.x()); end.set_y(start.y() + 3 * urlbar_bounds.height()); - if (!browser->SimulateDrag(start, end, ui::EF_LEFT_BUTTON_DOWN, false)) { + if (!browser->SimulateDrag(start, end, ui::EF_LEFT_MOUSE_BUTTON, false)) { LogWarningMessage("failed_to_simulate_drag"); return false; } @@ -209,7 +209,7 @@ bool AutomatedUITestBase::DragActiveTab(bool drag_right) { } if (!browser->SimulateDrag(dragged_tab_point, destination_point, - ui::EF_LEFT_BUTTON_DOWN, false)) { + ui::EF_LEFT_MOUSE_BUTTON, false)) { LogWarningMessage("failed_to_simulate_drag"); return false; } diff --git a/chrome/test/ui/history_uitest.cc b/chrome/test/ui/history_uitest.cc index ea08d20..f0dfb10 100644 --- a/chrome/test/ui/history_uitest.cc +++ b/chrome/test/ui/history_uitest.cc @@ -111,7 +111,7 @@ TEST_F(HistoryTester, ConsiderRedirectAfterGestureAsUserInitiated) { ASSERT_TRUE(window->GetViewBounds(VIEW_ID_TAB_CONTAINER, &tab_view_bounds, true)); ASSERT_TRUE(window->SimulateOSClick(tab_view_bounds.CenterPoint(), - ui::EF_LEFT_BUTTON_DOWN)); + ui::EF_LEFT_MOUSE_BUTTON)); NavigateToURL(GURL("javascript:redirectToPage12()")); WaitForFinish("History_Length_Test_12", "1", url, kTestCompleteCookie, |