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

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

Issue 2476883003: Revert of Allow selection change update before beginBatchEdit (Closed)
Patch Set: fixed build Created 4 years, 1 month 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 7efd80024015d190091e396c65043caa3e13bcf4..be0564979596464e9ee90d5c2590889a94f3adb5 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
@@ -6,11 +6,12 @@ package org.chromium.content.browser.input;
import static org.junit.Assert.assertEquals;
-import org.chromium.base.test.util.Feature;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
+import org.chromium.base.test.util.Feature;
+
/**
* Unit tests for {@TextInputState}.
*/
@@ -20,7 +21,7 @@ public class TextInputStateTest {
@Feature({"TextInput"})
public void testEmptySelection() {
TextInputState state =
- new TextInputState("hello", new Range(3, 3), new Range(-1, -1), false, true, false);
+ new TextInputState("hello", new Range(3, 3), new Range(-1, -1), false, true);
assertEquals("lo", state.getTextAfterSelection(3));
assertEquals("lo", state.getTextAfterSelection(2));
assertEquals("", state.getTextAfterSelection(0));
@@ -34,7 +35,7 @@ public class TextInputStateTest {
@Feature({"TextInput"})
public void testNonEmptySelection() {
TextInputState state =
- new TextInputState("hello", new Range(3, 4), new Range(3, 4), false, true, false);
+ new TextInputState("hello", new Range(3, 4), new Range(3, 4), false, true);
assertEquals("hel", state.getTextBeforeSelection(4));
assertEquals("hel", state.getTextBeforeSelection(3));
assertEquals("", state.getTextBeforeSelection(0));

Powered by Google App Engine
This is Rietveld 408576698