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

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

Issue 2179943006: Fix a hidden crash when ImeThread feature is used (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
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0572ab55c0fb3957415201f921d60aee3ab89d99..754d3c3d2419753e20924ca8819d78795ee668ff 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
@@ -946,12 +946,16 @@ public class ImeTest extends ContentShellTestBase {
@SmallTest
@Feature({"TextInput", "Main"})
public void testSetComposingRegionOutOfBounds() throws Throwable {
- focusElement("textarea");
+ focusElementAndWaitForStateUpdate("textarea");
setComposingText("hello", 1);
+ waitAndVerifyUpdateSelection(0, 5, 5, 0, 5);
setComposingRegion(0, 0);
+ waitAndVerifyUpdateSelection(1, 5, 5, -1, -1);
setComposingRegion(0, 9);
- setComposingRegion(9, 0);
+ waitAndVerifyUpdateSelection(2, 5, 5, 0, 5);
+ setComposingRegion(9, 1);
+ waitAndVerifyUpdateSelection(3, 5, 5, 1, 5);
}
@SmallTest
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698