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

Unified Diff: ui/base/ime/input_method_auralinux_unittest.cc

Issue 1257003002: OnPreeditChanged should update the internal composition after checking it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « ui/base/ime/input_method_auralinux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_auralinux_unittest.cc
diff --git a/ui/base/ime/input_method_auralinux_unittest.cc b/ui/base/ime/input_method_auralinux_unittest.cc
index 3efc467dfcd74cae7547841624573c10b96ab3ca..456b372bf8643b9cbd0384919f7f3b6c64211d31 100644
--- a/ui/base/ime/input_method_auralinux_unittest.cc
+++ b/ui/base/ime/input_method_auralinux_unittest.cc
@@ -606,6 +606,18 @@ TEST_F(InputMethodAuraLinuxTest, CompositionUpdateWithCommitTest) {
test_result_->ExpectAction("compositionstart");
test_result_->ExpectAction("compositionupdate:a");
test_result_->Verify();
+
+ // crbug.com/513124.
+ context_->SetSyncMode(true);
+ context_->SetEatKey(true);
+ context_->AddCommitAction("c");
+ context_->AddCompositionUpdateAction("");
+ input_method_auralinux_->DispatchKeyEvent(key);
+
+ test_result_->ExpectAction("keydown:229");
+ test_result_->ExpectAction("compositionend");
+ test_result_->ExpectAction("textinput:c");
+ test_result_->Verify();
}
TEST_F(InputMethodAuraLinuxTest, MixedAsyncAndSyncTest) {
« no previous file with comments | « ui/base/ime/input_method_auralinux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698