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

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/ModalDialogTest.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: chrome/android/javatests/src/org/chromium/chrome/browser/ModalDialogTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/ModalDialogTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/ModalDialogTest.java
index f3c03d9000f101e9625ceab972c5c5a4103ce13b..12a81ea0d20495cd325d19b6d6da4e20c5d3cee7 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/ModalDialogTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/ModalDialogTest.java
@@ -280,7 +280,7 @@ public class ModalDialogTest extends ChromeActivityTestCaseBase<ChromeActivity>
});
// Closing the tab should have dismissed the dialog.
- CriteriaHelper.pollForCriteria(new JavascriptAppModalDialogShownCriteria(
+ CriteriaHelper.pollInstrumentationThread(new JavascriptAppModalDialogShownCriteria(
"The dialog should have been dismissed when its tab was closed.", false));
}
@@ -303,7 +303,7 @@ public class ModalDialogTest extends ChromeActivityTestCaseBase<ChromeActivity>
helper.evaluateJavaScriptForTests(
getActivity().getCurrentContentViewCore().getWebContents(),
script);
- CriteriaHelper.pollForCriteria(new JavascriptAppModalDialogShownCriteria(
+ CriteriaHelper.pollInstrumentationThread(new JavascriptAppModalDialogShownCriteria(
"Could not spawn or locate a modal dialog.", true));
return helper;
}

Powered by Google App Engine
This is Rietveld 408576698