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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java

Issue 2143883002: Fix the bug that matras are input twice for Indian languages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java b/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
index 3a422176f6bc7d7761812ef566fc378d2f5fecc3..907a7bdb3c6ff55335e2533684b6f6f9028efe3f 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java
@@ -123,6 +123,22 @@ public class ImeTest extends ContentShellTestBase {
assertWaitForKeyboardStatus(false);
}
+ // crbug.com/620690
+ @CommandLineFlags.Add("enable-features=ImeThread")
yosin_UTC9 2016/07/13 07:56:07 Could you write test in InputMethodControllerTest.
+ @SmallTest
+ @Feature({"TextInput", "Main"})
+ public void testFinishComposingTextWithHindhiMatra() throws Throwable {
+ commitText("a", 1);
+ waitAndVerifyUpdateSelection(0, 1, 1, -1, -1);
+
+ setComposingText("\u0C03", 1);
+ waitAndVerifyUpdateSelection(1, 2, 2, 1, 2);
+
+ finishComposingText();
+ waitAndVerifyUpdateSelection(2, 2, 2, -1, -1);
+ assertTextsAroundCursor("a\u0C03", "", "");
+ }
+
@SmallTest
@Feature({"TextInput", "Main"})
public void testDeleteSurroundingTextWithZeroValue() throws Throwable {

Powered by Google App Engine
This is Rietveld 408576698