Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: content/browser/renderer_host/render_widget_host_view_win_browsertest.cc

Issue 11728003: Change ExecuteJavaScript* helper functions in browser_test_utils.{h,cc} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding files for gpu_tests and NaCl browser tests. Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_win_browsertest.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_win_browsertest.cc b/content/browser/renderer_host/render_widget_host_view_win_browsertest.cc
index 357fedbe66c8632c0bae9c3991960ccf7013293e..8c0bb3074f76bdd8223cf3423f9b9f6e8838bc56 100644
--- a/content/browser/renderer_host/render_widget_host_view_win_browsertest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win_browsertest.cc
@@ -41,8 +41,9 @@ IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewWinTest,
// Focus to the text field, the IME should be enabled.
bool success = false;
EXPECT_TRUE(ExecuteJavaScriptAndExtractBool(
- shell()->web_contents()->GetRenderViewHost(), L"",
- L"window.domAutomationController.send(text01_focus());",
+ shell()->web_contents()->GetRenderViewHost(),
+ "",
+ "window.domAutomationController.send(text01_focus());",
&success));
EXPECT_TRUE(success);
WaitForLoadStop(shell()->web_contents());
@@ -52,8 +53,9 @@ IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewWinTest,
// Focus to the password field, the IME should be disabled.
success = false;
EXPECT_TRUE(ExecuteJavaScriptAndExtractBool(
- shell()->web_contents()->GetRenderViewHost(), L"",
- L"window.domAutomationController.send(password02_focus());",
+ shell()->web_contents()->GetRenderViewHost(),
+ "",
+ "window.domAutomationController.send(password02_focus());",
&success));
EXPECT_TRUE(success);
WaitForLoadStop(shell()->web_contents());
@@ -79,8 +81,9 @@ IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewWinTest,
// Focus to the text field, the IME should be enabled.
bool success = false;
EXPECT_TRUE(ExecuteJavaScriptAndExtractBool(
- shell()->web_contents()->GetRenderViewHost(), L"",
- L"window.domAutomationController.send(text01_focus());",
+ shell()->web_contents()->GetRenderViewHost(),
+ "",
+ "window.domAutomationController.send(text01_focus());",
&success));
EXPECT_TRUE(success);
WaitForLoadStop(shell()->web_contents());
@@ -90,8 +93,9 @@ IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewWinTest,
// Focus to another text field, the IME should be enabled.
success = false;
EXPECT_TRUE(ExecuteJavaScriptAndExtractBool(
- shell()->web_contents()->GetRenderViewHost(), L"",
- L"window.domAutomationController.send(text02_focus());",
+ shell()->web_contents()->GetRenderViewHost(),
+ "",
+ "window.domAutomationController.send(text02_focus());",
&success));
EXPECT_TRUE(success);
WaitForLoadStop(shell()->web_contents());
@@ -117,8 +121,9 @@ IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewWinTest,
// Focus to the password field, the IME should be disabled.
bool success = false;
EXPECT_TRUE(ExecuteJavaScriptAndExtractBool(
- shell()->web_contents()->GetRenderViewHost(), L"",
- L"window.domAutomationController.send(password01_focus());",
+ shell()->web_contents()->GetRenderViewHost(),
+ "",
+ "window.domAutomationController.send(password01_focus());",
&success));
EXPECT_TRUE(success);
WaitForLoadStop(shell()->web_contents());
@@ -128,8 +133,9 @@ IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewWinTest,
// Focus to the another password field, the IME should be disabled.
success = false;
EXPECT_TRUE(ExecuteJavaScriptAndExtractBool(
- shell()->web_contents()->GetRenderViewHost(), L"",
- L"window.domAutomationController.send(password02_focus());",
+ shell()->web_contents()->GetRenderViewHost(),
+ "",
+ "window.domAutomationController.send(password02_focus());",
&success));
EXPECT_TRUE(success);
WaitForLoadStop(shell()->web_contents());
« no previous file with comments | « content/browser/renderer_host/render_view_host_manager_browsertest.cc ('k') | content/browser/session_history_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698