Chromium Code Reviews| 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 8cf30bcab30ce8bba083a273cbb9979d874ac312..41e46252015a4ef634ccd4a038aac546f6c0dc67 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 |
| @@ -184,6 +184,29 @@ public class ImeTest extends ContentShellTestBase { |
| @SmallTest |
| @Feature({"TextInput"}) |
| + public void testSelectActionBarClearOnTappingInput() throws Exception { |
|
jdduke (slow)
2014/08/27 18:07:12
Nit: "ActionBarCleared" instead of "ActionBarClear
AKVT
2014/08/27 18:19:41
Done.
|
| + commitText(mConnection, "Sample Text", 1); |
|
jdduke (slow)
2014/08/27 18:07:12
These tests aren't really IME-specific. What if w
AKVT
2014/08/27 18:19:40
Thanks jdduke for the suggestion. Actually I have
|
| + DOMUtils.longPressNode(this, mContentViewCore, "input_text"); |
| + assertWaitForKeyboardStatus(true); |
| + assertWaitForSelectActionBarStatus(true); |
| + DOMUtils.clickNode(this, mContentViewCore, "input_text"); |
| + assertWaitForSelectActionBarStatus(false); |
| + } |
| + |
| + @SmallTest |
| + @Feature({"TextInput"}) |
| + public void testSelectActionBarClearOnTappingOutsideInput() throws Exception { |
| + commitText(mConnection, "Sample Text", 1); |
| + DOMUtils.longPressNode(this, mContentViewCore, "input_text"); |
| + assertWaitForKeyboardStatus(true); |
| + assertWaitForSelectActionBarStatus(true); |
| + DOMUtils.clickNode(this, mContentViewCore, "input_radio"); |
| + assertWaitForKeyboardStatus(false); |
| + assertWaitForSelectActionBarStatus(false); |
| + } |
| + |
| + @SmallTest |
| + @Feature({"TextInput"}) |
| public void testImeCut() throws Exception { |
| commitText(mConnection, "snarful", 1); |
| waitAndVerifyEditableCallback(mConnection.mImeUpdateQueue, 1, "snarful", 7, 7, -1, -1); |