| 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 5adbfec59d8927f0a0041672e0df112ba03d9673..c320ccdbbe1023f9fab00c6830592edeb1d0703b 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
|
| @@ -207,6 +207,7 @@ public class ImeTest extends ContentShellTestBase {
|
| @CommandLineFlags.Add("enable-features=ImeThread")
|
| @SmallTest
|
| @Feature({"TextInput", "Main"})
|
| + @RetryOnFailure
|
| public void testCommitTextForNewCursorPositions() throws Throwable {
|
| // Cursor is on the left of committing text.
|
| commitText("ab", 0);
|
| @@ -263,6 +264,7 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @SmallTest
|
| @Feature({"TextInput", "Main"})
|
| + @RetryOnFailure
|
| public void testCommitTextWithEmptyText() throws Throwable {
|
| commitText("hello", 1);
|
| waitAndVerifyUpdateSelection(0, 5, 5, -1, -1);
|
| @@ -282,6 +284,7 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @SmallTest
|
| @Feature({"TextInput", "Main"})
|
| + @RetryOnFailure
|
| public void testCommitWhileComposingText() throws Throwable {
|
| setComposingText("h", 1);
|
| waitAndVerifyUpdateSelection(0, 1, 1, 0, 1);
|
| @@ -306,6 +309,7 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @SmallTest
|
| @Feature({"TextInput", "Main"})
|
| + @RetryOnFailure
|
| public void testCommitEnterKeyWhileComposingText() throws Throwable {
|
| focusElementAndWaitForStateUpdate("textarea");
|
|
|
| @@ -479,6 +483,7 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @SmallTest
|
| @Feature({"TextInput"})
|
| + @RetryOnFailure
|
| public void testImeNotShownOnLongPressingEmptyInput() throws Exception {
|
| DOMUtils.focusNode(mWebContents, "input_radio");
|
| DOMUtils.longPressNode(this, mContentViewCore, "input_text");
|
| @@ -621,6 +626,7 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @SmallTest
|
| @Feature({"TextInput"})
|
| + @RetryOnFailure
|
| public void testSelectActionBarClearedOnTappingInput() throws Exception {
|
| commitText("Sample Text", 1);
|
| DOMUtils.longPressNode(this, mContentViewCore, "input_text");
|
| @@ -673,6 +679,7 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @SmallTest
|
| @Feature({"TextInput"})
|
| + @RetryOnFailure
|
| public void testImeCut() throws Exception {
|
| commitText("snarful", 1);
|
| waitAndVerifyUpdateSelection(0, 7, 7, -1, -1);
|
| @@ -688,6 +695,7 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @SmallTest
|
| @Feature({"TextInput"})
|
| + @RetryOnFailure
|
| public void testImePaste() throws Exception {
|
| ThreadUtils.runOnUiThreadBlocking(new Runnable() {
|
| @Override
|
| @@ -907,6 +915,7 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @SmallTest
|
| @Feature({"TextInput", "Main"})
|
| + @RetryOnFailure
|
| public void testBackspaceKeycode() throws Throwable {
|
| focusElement("textarea");
|
|
|
| @@ -1106,6 +1115,7 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @SmallTest
|
| @Feature({"TextInput", "Main"})
|
| + @RetryOnFailure
|
| public void testDpadKeyCodesWhileSwipingText() throws Throwable {
|
| focusElement("textarea");
|
|
|
| @@ -1221,6 +1231,7 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @SmallTest
|
| @Feature({"TextInput"})
|
| + @RetryOnFailure
|
| public void testTextHandlesPreservedWithDpadNavigation() throws Throwable {
|
| DOMUtils.longPressNode(this, mContentViewCore, "plain_text");
|
| assertWaitForSelectActionBarStatus(true);
|
| @@ -1291,6 +1302,7 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @MediumTest
|
| @Feature({"TextInput"})
|
| + @RetryOnFailure
|
| public void testContentEditableEvents_CommitText() throws Throwable {
|
| focusElementAndWaitForStateUpdate("contenteditable_event");
|
| waitForEventLogs("selectionchange,selectionchange");
|
| @@ -1437,6 +1449,7 @@ public class ImeTest extends ContentShellTestBase {
|
| // crbug.com/643477
|
| @MediumTest
|
| @Feature({"TextInput"})
|
| + @RetryOnFailure
|
| public void testUiThreadAccess() throws Exception {
|
| final ChromiumBaseInputConnection connection = mConnection;
|
| ThreadUtils.runOnUiThreadBlocking(new Runnable() {
|
|
|