Index: chrome/browser/mouseleave_browsertest.cc |
diff --git a/chrome/browser/mouseleave_browsertest.cc b/chrome/browser/mouseleave_browsertest.cc |
index 6719b9394d356debca9bf729e14055af6450ef6d..c4bcbcf450b7adfa431e017cdcb9f1256c18e822 100644 |
--- a/chrome/browser/mouseleave_browsertest.cc |
+++ b/chrome/browser/mouseleave_browsertest.cc |
@@ -130,7 +130,7 @@ |
// Wait until the context menu is opened and closed. |
menu_observer.WaitForMenuOpenAndClose(); |
- tab->GetMainFrame()->ExecuteJavaScriptForTests(base::ASCIIToUTF16("done()")); |
+ tab->GetMainFrame()->ExecuteJavaScript(base::ASCIIToUTF16("done()")); |
const base::string16 success_title = base::ASCIIToUTF16("without mouseleave"); |
const base::string16 failure_title = base::ASCIIToUTF16("with mouseleave"); |
content::TitleWatcher done_title_watcher(tab, success_title); |
@@ -156,12 +156,12 @@ |
EXPECT_NO_FATAL_FAILURE(LoadTestPageAndWaitForMouseOver(tab)); |
- tab->GetMainFrame()->ExecuteJavaScriptForTests(base::UTF8ToUTF16("alert()")); |
+ tab->GetMainFrame()->ExecuteJavaScript(base::UTF8ToUTF16("alert()")); |
app_modal::AppModalDialog* alert = ui_test_utils::WaitForAppModalDialog(); |
// Cancel the dialog. |
alert->CloseModalDialog(); |
- tab->GetMainFrame()->ExecuteJavaScriptForTests(base::ASCIIToUTF16("done()")); |
+ tab->GetMainFrame()->ExecuteJavaScript(base::ASCIIToUTF16("done()")); |
const base::string16 success_title = base::ASCIIToUTF16("without mouseleave"); |
const base::string16 failure_title = base::ASCIIToUTF16("with mouseleave"); |
content::TitleWatcher done_title_watcher(tab, success_title); |