Index: chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java |
index 091a7b5c72851f437c904672daad548fa70bc646..be59db6b0e9637bafca89a787d16cff79e36d50c 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java |
@@ -133,7 +133,7 @@ public class TabsTest extends ChromeTabbedActivityTestBase { |
ThreadUtils.runOnUiThreadBlocking(new Runnable() { |
@Override |
public void run() { |
- tab.getWebContents().evaluateJavaScript( |
+ tab.getWebContents().evaluateJavaScriptForTests( |
"(function() {" |
+ " window.open('www.google.com');" |
+ "})()", |
@@ -158,7 +158,7 @@ public class TabsTest extends ChromeTabbedActivityTestBase { |
ThreadUtils.runOnUiThreadBlocking(new Runnable() { |
@Override |
public void run() { |
- tab.getWebContents().evaluateJavaScript( |
+ tab.getWebContents().evaluateJavaScriptForTests( |
"(function() {" |
+ " alert('hi');" |
+ "})()", |