| 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 d62794edb944a61911afc7e62f778fdaf3deb368..6df4ee1e49c1c2bb25b82db7f2657b4c2d191345 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
|
| @@ -304,19 +304,16 @@ public class ImeTest extends ContentShellTestBase {
|
| commitText("Sample Text", 1);
|
| waitAndVerifyUpdateSelection(0, 11, 11, -1, -1);
|
|
|
| - // This will select 'Text' part.
|
| - DOMUtils.clickNode(this, mContentViewCore, "input_text");
|
| - assertWaitForKeyboardStatus(true);
|
| + // Select 'text' part.
|
| + DOMUtils.longPressNode(this, mContentViewCore, "input_text");
|
|
|
| - // Wait until selection popup shows before long press. Otherwise view
|
| - // position may change during sleep in longPressNode implementation.
|
| assertWaitForSelectActionBarStatus(true);
|
|
|
| - DOMUtils.longPressNode(this, mContentViewCore, "input_text");
|
| selectAll();
|
| copy();
|
| - assertWaitForKeyboardStatus(true);
|
| + assertClipboardContents(getActivity(), "Sample Text");
|
| assertEquals(11, mInputMethodManagerWrapper.getSelection().end());
|
| + assertWaitForKeyboardStatus(true);
|
| }
|
|
|
| @SmallTest
|
| @@ -1012,10 +1009,6 @@ public class ImeTest extends ContentShellTestBase {
|
| commitText("hello", 1);
|
| waitAndVerifyUpdateSelection(0, 5, 5, -1, -1);
|
|
|
| - DOMUtils.clickNode(this, mContentViewCore, "input_text");
|
| - assertWaitForKeyboardStatus(true);
|
| - assertWaitForSelectActionBarStatus(true);
|
| -
|
| DOMUtils.longPressNode(this, mContentViewCore, "input_text");
|
| assertWaitForSelectActionBarStatus(true);
|
|
|
|
|