Index: chrome/renderer/autofill/page_click_tracker_browsertest.cc |
diff --git a/chrome/renderer/autofill/page_click_tracker_browsertest.cc b/chrome/renderer/autofill/page_click_tracker_browsertest.cc |
index a6a5a2b4ea9aabb6eb59b27e2bfb24fc73efc715..9a498c9e202e0f286a83cbfd06684ef784b97202 100644 |
--- a/chrome/renderer/autofill/page_click_tracker_browsertest.cc |
+++ b/chrome/renderer/autofill/page_click_tracker_browsertest.cc |
@@ -126,7 +126,7 @@ TEST_F(PageClickTrackerTest, PageClickTrackerInputRightClicked) { |
TEST_F(PageClickTrackerTest, PageClickTrackerInputFocusedAndClicked) { |
// Focus the text field without a click. |
- ExecuteJavaScript("document.getElementById('text_1').focus();"); |
+ ExecuteJavaScriptForTests("document.getElementById('text_1').focus();"); |
EXPECT_FALSE(test_listener_.form_control_element_clicked_called_); |
test_listener_.ClearResults(); |
@@ -161,7 +161,7 @@ TEST_F(PageClickTrackerTest, PageClickTrackerTextAreaClicked) { |
TEST_F(PageClickTrackerTest, PageClickTrackerTextAreaFocusedAndClicked) { |
// Focus the textarea without a click. |
- ExecuteJavaScript("document.getElementById('textarea_1').focus();"); |
+ ExecuteJavaScriptForTests("document.getElementById('textarea_1').focus();"); |
EXPECT_FALSE(test_listener_.form_control_element_clicked_called_); |
test_listener_.ClearResults(); |