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")); |
} |