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

Unified Diff: chrome/browser/password_manager/password_manager_interactive_uitest.cc

Issue 2048533002: Add code and key into the browser test key simulation methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chromeos build Created 4 years, 6 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
Index: chrome/browser/password_manager/password_manager_interactive_uitest.cc
diff --git a/chrome/browser/password_manager/password_manager_interactive_uitest.cc b/chrome/browser/password_manager/password_manager_interactive_uitest.cc
index 748b230db826005ca2006726292b7feec37667f7..3f5b1230b87597895a6f18c5a69ba7d965bdb66d 100644
--- a/chrome/browser/password_manager/password_manager_interactive_uitest.cc
+++ b/chrome/browser/password_manager/password_manager_interactive_uitest.cc
@@ -20,15 +20,20 @@ void SimulateUserTypingInField(content::RenderViewHost* render_view_host,
std::string focus("document.getElementById('" + field_id + "').focus();");
ASSERT_TRUE(content::ExecuteScript(render_view_host, focus));
- content::SimulateKeyPress(web_contents, ui::VKEY_O, false, false, false,
+ content::SimulateKeyPress(web_contents, ui::DomKey::FromCharacter('O'),
+ ui::DomCode::US_O, ui::VKEY_O, false, false, false,
false);
- content::SimulateKeyPress(web_contents, ui::VKEY_R, false, false, false,
+ content::SimulateKeyPress(web_contents, ui::DomKey::FromCharacter('R'),
+ ui::DomCode::US_R, ui::VKEY_R, false, false, false,
false);
- content::SimulateKeyPress(web_contents, ui::VKEY_A, false, false, false,
+ content::SimulateKeyPress(web_contents, ui::DomKey::FromCharacter('A'),
+ ui::DomCode::US_A, ui::VKEY_A, false, false, false,
false);
- content::SimulateKeyPress(web_contents, ui::VKEY_R, false, false, false,
+ content::SimulateKeyPress(web_contents, ui::DomKey::FromCharacter('R'),
+ ui::DomCode::US_R, ui::VKEY_R, false, false, false,
false);
- content::SimulateKeyPress(web_contents, ui::VKEY_Y, false, false, false,
+ content::SimulateKeyPress(web_contents, ui::DomKey::FromCharacter('Y'),
+ ui::DomCode::US_Y, ui::VKEY_Y, false, false, false,
false);
}

Powered by Google App Engine
This is Rietveld 408576698