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 7cffc5bf0a92ac33a911e9c777342b062292a6c3..e7ccc6e09aab1a30646e64c43192e87a7c4fe279 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/ModalDialogTest.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/ModalDialogTest.java |
@@ -264,7 +264,8 @@ public class ModalDialogTest extends ChromeActivityTestCaseBase<ChromeActivity> |
clickCancel(jsDialog); |
scriptEvent.waitUntilHasValue(); |
- scriptEvent.evaluateJavaScript(getActivity().getCurrentContentViewCore().getWebContents(), |
+ scriptEvent.evaluateJavaScriptForTests( |
+ getActivity().getCurrentContentViewCore().getWebContents(), |
"alert('Android');"); |
assertTrue("No further dialog boxes should be shown.", scriptEvent.waitUntilHasValue()); |
} |
@@ -310,7 +311,8 @@ public class ModalDialogTest extends ChromeActivityTestCaseBase<ChromeActivity> |
private OnEvaluateJavaScriptResultHelper executeJavaScriptAndWaitForDialog( |
final OnEvaluateJavaScriptResultHelper helper, String script) |
throws InterruptedException { |
- helper.evaluateJavaScript(getActivity().getCurrentContentViewCore().getWebContents(), |
+ helper.evaluateJavaScriptForTests( |
+ getActivity().getCurrentContentViewCore().getWebContents(), |
script); |
boolean criteriaSatisfied = CriteriaHelper.pollForCriteria( |
new JavascriptAppModalDialogShownCriteria(true)); |