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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java

Issue 2844063006: [TTS] Fix long-press tests to allow empty strings. (Closed)
Patch Set: Created 3 years, 8 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: chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java
index 2db6fb07f8106484af0cf127a5248cf1c98277fa..7b8c14bc6239c8b00a3ea2f748d120b09230a474 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java
@@ -825,7 +825,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
waitForGestureProcessing();
waitForPanelToClose();
assertPanelClosedOrUndefined();
- assertNull(getSelectedText());
+ assertTrue(TextUtils.isEmpty(getSelectedText()));
}
/**
@@ -1347,7 +1347,7 @@ public class ContextualSearchManagerTest extends ChromeActivityTestCaseBase<Chro
clickNode("question-mark");
waitForGestureProcessing();
waitForPanelToCloseAndSelectionEmpty();
- assertNull(getSelectedText());
+ assertTrue(TextUtils.isEmpty(getSelectedText()));
assertLoadedNoUrl();
}
« 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