Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1608)

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java

Issue 1842663002: Deflake two IME tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698