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

Unified Diff: chrome/browser/views/bookmark_bar_view_test.cc

Issue 171079: more linux automation porting: SendKeyPressNotifyWhenDone... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months 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 | « chrome/browser/browser_focus_uitest.cc ('k') | chrome/test/automated_ui_tests/automated_ui_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_bar_view_test.cc
===================================================================
--- chrome/browser/views/bookmark_bar_view_test.cc (revision 23591)
+++ chrome/browser/views/bookmark_bar_view_test.cc (working copy)
@@ -248,7 +248,7 @@
views::View::ConvertPointToScreen(bb_view_, &mouse_loc);
ui_controls::SendMouseMove(0, 0);
ui_controls::SendMouseEventsNotifyWhenDone(
- ui_controls::LEFT, ui_controls::DOWN | ui_controls::UP,
+ NULL, ui_controls::LEFT, ui_controls::DOWN | ui_controls::UP,
CreateEventTask(this, &BookmarkBarViewTest2::Step3));
}
@@ -744,7 +744,7 @@
// Send a down event, which should select the first item.
ui_controls::SendKeyPressNotifyWhenDone(
- VK_DOWN, false, false, false,
+ NULL, VK_DOWN, false, false, false,
CreateEventTask(this, &BookmarkBarViewTest10::Step3));
}
@@ -757,7 +757,7 @@
// Send a key down event, which should select the next item.
ui_controls::SendKeyPressNotifyWhenDone(
- VK_DOWN, false, false, false,
+ NULL, VK_DOWN, false, false, false,
CreateEventTask(this, &BookmarkBarViewTest10::Step4));
}
@@ -770,7 +770,7 @@
// Send a right arrow to force the menu to open.
ui_controls::SendKeyPressNotifyWhenDone(
- VK_RIGHT, false, false, false,
+ NULL, VK_RIGHT, false, false, false,
CreateEventTask(this, &BookmarkBarViewTest10::Step5));
}
@@ -786,7 +786,7 @@
// Send a left arrow to close the submenu.
ui_controls::SendKeyPressNotifyWhenDone(
- VK_LEFT, false, false, false,
+ NULL, VK_LEFT, false, false, false,
CreateEventTask(this, &BookmarkBarViewTest10::Step6));
}
@@ -801,7 +801,7 @@
// Send a down arrow to wrap back to f1a
ui_controls::SendKeyPressNotifyWhenDone(
- VK_DOWN, false, false, false,
+ NULL, VK_DOWN, false, false, false,
CreateEventTask(this, &BookmarkBarViewTest10::Step7));
}
@@ -814,7 +814,7 @@
// Send enter, which should select the item.
ui_controls::SendKeyPressNotifyWhenDone(
- VK_RETURN, false, false, false,
+ NULL, VK_RETURN, false, false, false,
CreateEventTask(this, &BookmarkBarViewTest10::Step8));
}
@@ -862,7 +862,8 @@
void Step3() {
// Send escape so that the context menu hides.
- ui_controls::SendKeyPressNotifyWhenDone(VK_ESCAPE, false, false, false,
+ ui_controls::SendKeyPressNotifyWhenDone(
+ NULL, VK_ESCAPE, false, false, false,
CreateEventTask(this, &BookmarkBarViewTest11::Step4));
}
@@ -949,8 +950,7 @@
void Step4() {
// Press tab to give focus to the cancel button.
- ui_controls::SendKeyPressNotifyWhenDone(VK_TAB, false, false, false,
- NULL);
+ ui_controls::SendKeyPress(NULL, VK_TAB, false, false, false);
// For some reason return isn't processed correctly unless we delay.
MessageLoop::current()->PostDelayedTask(FROM_HERE,
@@ -959,7 +959,8 @@
void Step5() {
// And press enter so that the cancel button is selected.
- ui_controls::SendKeyPressNotifyWhenDone(VK_RETURN, false, false, false,
+ ui_controls::SendKeyPressNotifyWhenDone(
+ NULL, VK_RETURN, false, false, false,
CreateEventTask(this, &BookmarkBarViewTest12::Step6));
}
« no previous file with comments | « chrome/browser/browser_focus_uitest.cc ('k') | chrome/test/automated_ui_tests/automated_ui_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698