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 e63937fd94cd00c64407fe51eb113c41a9ee5cfe..4733bdd1db9553038cd63aa00fb9a4af720492c2 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 |
| @@ -540,6 +540,28 @@ public class ImeTest extends ContentShellTestBase { |
| assertEquals(KeyEvent.KEYCODE_H, mImeAdapter.mLastSyntheticKeyCode); |
| } |
| + @SmallTest |
| + @Feature({"TextInput"}) |
| + public void testPastePopupShowOnLongPress() throws Throwable { |
| + commitText(mConnection, "hello", 1); |
| + waitAndVerifyEditableCallback( |
| + mConnection.mImeUpdateQueue, 1, "hello", 5, 5, -1, -1); |
| + |
| + selectAll(mImeAdapter); |
| + waitAndVerifyEditableCallback( |
| + mConnection.mImeUpdateQueue, 2, "hello", 0, 5, -1, -1); |
| + |
| + cut(mImeAdapter); |
| + waitAndVerifyEditableCallback( |
| + mConnection.mImeUpdateQueue, 0, "", 0, 0, -1, -1); |
| + |
| + DOMUtils.focusNode(mContentViewCore, "input_radio"); |
| + DOMUtils.longPressNode(this, mContentViewCore, "input_text"); |
| + PastePopupMenu pastePopup = mContentViewCore.getPastePopupForTest(); |
| + assertWaitForKeyboardStatus(false); |
|
jdduke (slow)
2014/08/26 15:06:43
I don't think this is the right wait condition. Th
raghu
2014/08/26 15:45:56
Cut doesnt hide the keyboard. Also in this test si
jdduke (slow)
2014/08/26 16:01:22
If the keyboard status doesn't change, why are you
raghu
2014/08/27 05:06:42
Done.
|
| + assertTrue(pastePopup.isShowing()); |
| + } |
| + |
| private void performGo(final AdapterInputConnection inputConnection, |
| TestCallbackHelperContainer testCallbackHelperContainer) throws Throwable { |
| handleBlockingCallbackAction( |