| 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 8a89fae977d4ef34b056f00503ea1089f35801f4..9f8f3d1b6e005529c418beb399d334aaec4243d1 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
|
| @@ -33,8 +33,8 @@ public class JSUtils {
|
| public boolean isSatisfied() {
|
| try {
|
| String linkIsNotNull = executeJavaScriptAndWaitForResult(testCase, awContents,
|
| - onEvaluateJavaScriptResultHelper,
|
| - "document.getElementById('" + linkId + "') != null");
|
| + onEvaluateJavaScriptResultHelper,
|
| + "document.getElementById('" + linkId + "') != null");
|
| return linkIsNotNull.equals("true");
|
| } catch (Throwable t) {
|
| t.printStackTrace();
|
| @@ -48,11 +48,11 @@ public class JSUtils {
|
| @Override
|
| public void run() {
|
| awContents.getWebContents().evaluateJavaScript(
|
| - "var evObj = document.createEvent('Events'); " +
|
| - "evObj.initEvent('click', true, false); " +
|
| - "document.getElementById('" + linkId + "').dispatchEvent(evObj);" +
|
| - "console.log('element with id [" + linkId + "] clicked');",
|
| - null);
|
| + "var evObj = document.createEvent('Events'); " +
|
| + "evObj.initEvent('click', true, false); " +
|
| + "document.getElementById('" + linkId + "').dispatchEvent(evObj);" +
|
| + "console.log('element with id [" + linkId + "] clicked');",
|
| + null);
|
| }
|
| });
|
| }
|
|
|