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

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

Issue 2594333002: Remove obsolete and flaky ImeTest#testPasteLongText (Closed)
Patch Set: Created 4 years 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 a6f43afbe667d7bb8cf893789ee3754996deba73..a3c3adc86e207426ec49464347bfd075d6930d50 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
@@ -776,33 +776,6 @@ public class ImeTest extends ContentShellTestBase {
assertTextsAroundCursor("blablargblarg", null, "");
}
- // crbug.com/606059
- @MediumTest
- @Feature({"TextInput"})
- @RetryOnFailure
- public void testPasteLongText() throws Exception {
- final int textLength = 25000;
- final String text = new String(new char[textLength]).replace("\0", "a");
- setClip(text);
- assertClipboardContents(getActivity(), text);
-
- focusElement("textarea");
- waitAndVerifyUpdateSelection(0, 0, 0, -1, -1);
-
- // In order to reproduce the bug, we need some text after the pasting text.
- commitText("hello", 1);
- waitAndVerifyUpdateSelection(1, 5, 5, -1, -1);
-
- setSelection(0, 0);
- waitAndVerifyUpdateSelection(2, 0, 0, -1, -1);
-
- // It will crash after the 3rd paste if ImeThread is not enabled.
- for (int i = 0; i < 10; i++) {
- paste();
- waitAndVerifyUpdateSelection(3 + i, textLength * (i + 1), textLength * (i + 1), -1, -1);
- }
- }
-
@SmallTest
@Feature({"TextInput"})
@DisabledTest(message = "crbug.com/673588")
« 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