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

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

Issue 2279293002: Return null when selected text is empty (Closed)
Patch Set: fixed a failing test Created 4 years, 4 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 | « content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e90de3cfccf11b11cf87d59495c40554bf17ba44..89787b7e334578bdbaf27c86ea61c477ff2bbbe5 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
@@ -27,7 +27,7 @@ public class TextInputStateTest {
assertEquals("hel", state.getTextBeforeSelection(3));
assertEquals("el", state.getTextBeforeSelection(2));
assertEquals("", state.getTextBeforeSelection(0));
- assertEquals("", state.getSelectedText());
+ assertEquals(null, state.getSelectedText());
}
@Test
« no previous file with comments | « content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698