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 94e1794350909088a8288f271b376f906533e70e..e63937fd94cd00c64407fe51eb113c41a9ee5cfe 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 |
@@ -163,6 +163,17 @@ public class ImeTest extends ContentShellTestBase { |
@SmallTest |
@Feature({"TextInput"}) |
+ public void testImeNotShownOnLongPressingEmptyInput() throws Exception { |
+ DOMUtils.focusNode(mContentViewCore, "input_radio"); |
+ DOMUtils.longPressNode(this, mContentViewCore, "input_text"); |
+ assertWaitForKeyboardStatus(false); |
+ commitText(mConnection, "Sample Text", 1); |
+ DOMUtils.longPressNode(this, mContentViewCore, "input_text"); |
+ assertWaitForKeyboardStatus(true); |
+ } |
+ |
+ @SmallTest |
+ @Feature({"TextInput"}) |
public void testImeCut() throws Exception { |
commitText(mConnection, "snarful", 1); |
waitAndVerifyEditableCallback(mConnection.mImeUpdateQueue, 1, "snarful", 7, 7, -1, -1); |