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

Unified Diff: chrome/browser/chromeos/input_method/textinput_browsertest.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/chromeos/input_method/textinput_browsertest.cc
diff --git a/chrome/browser/chromeos/input_method/textinput_browsertest.cc b/chrome/browser/chromeos/input_method/textinput_browsertest.cc
index ec62c9cd5f34e6b6b9a470182f25f0e67b35309f..6ba6f32c56c3c6f151c5ed3fe547661ed2fe94c9 100644
--- a/chrome/browser/chromeos/input_method/textinput_browsertest.cc
+++ b/chrome/browser/chromeos/input_method/textinput_browsertest.cc
@@ -257,7 +257,8 @@ IN_PROC_BROWSER_TEST_F(TextInput_TextInputStateChangedTest,
}; // The order should be same as tab order in all_input_node.html.
for (size_t i = 0; i < arraysize(expectations); ++i) {
- content::SimulateKeyPress(tab, ui::VKEY_TAB, false, false, false, false);
+ content::SimulateKeyPress(tab, ui::DomKey::TAB, ui::DomCode::TAB,
+ ui::VKEY_TAB, false, false, false, false);
helper.WaitForTextInputStateChanged(expectations[i].type);
EXPECT_EQ(expectations[i].type, helper.GetTextInputType());

Powered by Google App Engine
This is Rietveld 408576698