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

Unified Diff: chrome/browser/chromeos/input_method/input_method_manager_browsertest.cc

Issue 9653027: Fix ui::VKEY_HANGUL handler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/chromeos/input_method/input_method_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/input_method_manager_browsertest.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_manager_browsertest.cc b/chrome/browser/chromeos/input_method/input_method_manager_browsertest.cc
index c7789b676129899ab0d72c4bd8518a75af52eb70..a5cb7b74aa5e481ef9774b7bfee98234f1944a8a 100644
--- a/chrome/browser/chromeos/input_method/input_method_manager_browsertest.cc
+++ b/chrome/browser/chromeos/input_method/input_method_manager_browsertest.cc
@@ -122,6 +122,19 @@ IN_PROC_BROWSER_TEST_F(InputMethodManagerTest, TestSwitchInputMethod) {
EXPECT_TRUE(manager_->SwitchInputMethod(
ui::Accelerator(ui::VKEY_DBE_DBCSCHAR, false, false, false)));
EXPECT_EQ("xkb:jp::jpn", manager_->current_input_method().id());
+
+ // Do the same tests for Korean.
+ manager_->EnableInputMethods("ko", kKeyboardLayoutsOnly, "xkb:us::eng");
+ EXPECT_EQ(2U, manager_->GetNumActiveInputMethods());
+ EXPECT_EQ("xkb:us::eng", manager_->current_input_method().id());
+ EXPECT_TRUE(manager_->SwitchInputMethod(
+ ui::Accelerator(ui::VKEY_HANGUL, false, false, false)));
+ EXPECT_EQ("xkb:kr:kr104:kor", manager_->current_input_method().id());
+ manager_->SwitchToPreviousInputMethod();
+ EXPECT_EQ("xkb:us::eng", manager_->current_input_method().id());
+ EXPECT_TRUE(manager_->SwitchInputMethod(
+ ui::Accelerator(ui::VKEY_SPACE, true, false, false)));
+ EXPECT_EQ("xkb:kr:kr104:kor", manager_->current_input_method().id());
}
} // namespace input_method
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698