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

Unified Diff: content/public/android/junit/src/org/chromium/content/browser/input/TextInputStateTest.java

Issue 2309983002: Allow selection change update before beginBatchEdit (Closed)
Patch Set: fixed a test failure Created 4 years, 3 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
Index: content/public/android/junit/src/org/chromium/content/browser/input/TextInputStateTest.java
diff --git a/content/public/android/junit/src/org/chromium/content/browser/input/TextInputStateTest.java b/content/public/android/junit/src/org/chromium/content/browser/input/TextInputStateTest.java
index 89787b7e334578bdbaf27c86ea61c477ff2bbbe5..7efd80024015d190091e396c65043caa3e13bcf4 100644
--- a/content/public/android/junit/src/org/chromium/content/browser/input/TextInputStateTest.java
+++ b/content/public/android/junit/src/org/chromium/content/browser/input/TextInputStateTest.java
@@ -20,7 +20,7 @@ public class TextInputStateTest {
@Feature({"TextInput"})
public void testEmptySelection() {
TextInputState state =
- new TextInputState("hello", new Range(3, 3), new Range(-1, -1), false, true);
+ new TextInputState("hello", new Range(3, 3), new Range(-1, -1), false, true, false);
assertEquals("lo", state.getTextAfterSelection(3));
assertEquals("lo", state.getTextAfterSelection(2));
assertEquals("", state.getTextAfterSelection(0));
@@ -34,7 +34,7 @@ public class TextInputStateTest {
@Feature({"TextInput"})
public void testNonEmptySelection() {
TextInputState state =
- new TextInputState("hello", new Range(3, 4), new Range(3, 4), false, true);
+ new TextInputState("hello", new Range(3, 4), new Range(3, 4), false, true, false);
assertEquals("hel", state.getTextBeforeSelection(4));
assertEquals("hel", state.getTextBeforeSelection(3));
assertEquals("", state.getTextBeforeSelection(0));

Powered by Google App Engine
This is Rietveld 408576698