Index: android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java |
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java b/android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java |
index 5f2b6ab99f3a570d2b2f781522c8e526687caaff..c522fa80f7efc9d34fff9f558a0bd2fcbe56ddd8 100644 |
--- a/android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java |
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java |
@@ -47,7 +47,7 @@ public class JSUtils { |
testCase.getInstrumentation().runOnMainSync(new Runnable() { |
@Override |
public void run() { |
- awContents.getWebContents().evaluateJavaScript( |
+ awContents.getWebContents().evaluateJavaScriptForTests( |
"var evObj = document.createEvent('Events'); " |
+ "evObj.initEvent('click', true, false); " |
+ "document.getElementById('" + linkId + "').dispatchEvent(evObj);" |
@@ -65,7 +65,7 @@ public class JSUtils { |
testCase.getInstrumentation().runOnMainSync(new Runnable() { |
@Override |
public void run() { |
- onEvaluateJavaScriptResultHelper.evaluateJavaScript( |
+ onEvaluateJavaScriptResultHelper.evaluateJavaScriptForTests( |
awContents.getWebContents(), code); |
} |
}); |