Index: content/public/android/javatests/src/org/chromium/content/browser/NavigationTest.java |
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/NavigationTest.java b/content/public/android/javatests/src/org/chromium/content/browser/NavigationTest.java |
index 32d8d24afb925af63d0d2972713ed252402c2ec8..ae0ab89b8cd5212cd3fc6bf39a4007076f3dce2d 100644 |
--- a/content/public/android/javatests/src/org/chromium/content/browser/NavigationTest.java |
+++ b/content/public/android/javatests/src/org/chromium/content/browser/NavigationTest.java |
@@ -118,7 +118,8 @@ public class NavigationTest extends ContentShellTestBase { |
OnEvaluateJavaScriptResultHelper javascriptHelper = new OnEvaluateJavaScriptResultHelper(); |
// Grab the first timestamp. |
- javascriptHelper.evaluateJavaScript(contentViewCore.getWebContents(), "getLoadtime();"); |
+ javascriptHelper.evaluateJavaScriptForTests( |
+ contentViewCore.getWebContents(), "getLoadtime();"); |
javascriptHelper.waitUntilHasValue(); |
String firstTimestamp = javascriptHelper.getJsonResultAndClear(); |
assertNotNull("Timestamp was null.", firstTimestamp); |
@@ -126,7 +127,8 @@ public class NavigationTest extends ContentShellTestBase { |
// Grab the timestamp after a reload and make sure they don't match. |
reload(contentViewCore.getWebContents().getNavigationController(), |
testCallbackHelperContainer); |
- javascriptHelper.evaluateJavaScript(contentViewCore.getWebContents(), "getLoadtime();"); |
+ javascriptHelper.evaluateJavaScriptForTests( |
+ contentViewCore.getWebContents(), "getLoadtime();"); |
javascriptHelper.waitUntilHasValue(); |
String secondTimestamp = javascriptHelper.getJsonResultAndClear(); |
assertNotNull("Timestamp was null.", secondTimestamp); |