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

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

Issue 1786243003: Rename pollForCriteria to pollForTestThreadCriteria. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and update MediaRouterIntegrationTest.java Created 4 years, 9 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/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java b/content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java
index 459b9a9cb4107b939380a0a467550a6a39115b16..6c659c645903e3ccd509dd4a62acce60c2cee406 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java
@@ -72,7 +72,7 @@ public class GestureDetectorResetTest extends ContentShellTestBase {
ContentViewCore contentViewCore)
throws InterruptedException, Exception, Throwable {
// Initially the text on the page should say "not clicked".
- CriteriaHelper.pollForCriteria(new NodeContentsIsEqualToCriteria(
+ CriteriaHelper.pollInstrumentationThread(new NodeContentsIsEqualToCriteria(
"The page contents is invalid " + disambiguation, contentViewCore,
"test", "not clicked"));
@@ -80,7 +80,7 @@ public class GestureDetectorResetTest extends ContentShellTestBase {
DOMUtils.clickNode(this, contentViewCore, "button");
// After the click, the text on the page should say "clicked".
- CriteriaHelper.pollForCriteria(new NodeContentsIsEqualToCriteria(
+ CriteriaHelper.pollInstrumentationThread(new NodeContentsIsEqualToCriteria(
"The page contents didn't change after a click " + disambiguation,
contentViewCore, "test", "clicked"));
}

Powered by Google App Engine
This is Rietveld 408576698