| 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 1b456d94ff305310d26234406755db48b3aea335..0a5286c9d01ec5749aa93cc517f2d3cf9f35068b 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,30 @@ public class ImeTest extends ContentShellTestBase {
|
|
|
| @SmallTest
|
| @Feature({"TextInput"})
|
| + public void testImeNotShownOnLongPressingDifferentEmptyInputs() throws Exception {
|
| + DOMUtils.focusNode(mContentViewCore, "input_radio");
|
| + DOMUtils.longPressNode(this, mContentViewCore, "input_text");
|
| + assertWaitForKeyboardStatus(false);
|
| + DOMUtils.longPressNode(this, mContentViewCore, "textarea");
|
| + assertWaitForKeyboardStatus(false);
|
| + }
|
| +
|
| + @SmallTest
|
| + @Feature({"TextInput"})
|
| + public void testImeStaysOnLongPressingDifferentNonEmptyInputs() throws Exception {
|
| + DOMUtils.focusNode(mContentViewCore, "input_text");
|
| + assertWaitForKeyboardStatus(true);
|
| + commitText(mConnection, "Sample Text", 1);
|
| + DOMUtils.focusNode(mContentViewCore, "textarea");
|
| + commitText(mConnection, "Sample Text", 1);
|
| + DOMUtils.longPressNode(this, mContentViewCore, "input_text");
|
| + assertWaitForKeyboardStatus(true);
|
| + DOMUtils.longPressNode(this, mContentViewCore, "textarea");
|
| + assertWaitForKeyboardStatus(true);
|
| + }
|
| +
|
| + @SmallTest
|
| + @Feature({"TextInput"})
|
| public void testImeCut() throws Exception {
|
| commitText(mConnection, "snarful", 1);
|
| waitAndVerifyEditableCallback(mConnection.mImeUpdateQueue, 1, "snarful", 7, 7, -1, -1);
|
|
|