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

Unified Diff: chrome/browser/automation/automation_misc_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: chrome/browser/automation/automation_misc_browsertest.cc
diff --git a/chrome/browser/automation/automation_misc_browsertest.cc b/chrome/browser/automation/automation_misc_browsertest.cc
index a211eaf7df4c4bcbd1076b208978ea6b96186cb6..9056332827bbd99dd96ecb821c3fe1ab9114e088 100644
--- a/chrome/browser/automation/automation_misc_browsertest.cc
+++ b/chrome/browser/automation/automation_misc_browsertest.cc
@@ -75,13 +75,13 @@ IN_PROC_BROWSER_TEST_F(AutomationMiscBrowserTest, ProcessMouseEvent) {
chrome::GetActiveWebContents(browser())->GetRenderViewHost();
ASSERT_TRUE(content::ExecuteJavaScript(
view,
- L"",
- L"window.didClick = false;"
- L"document.body.innerHTML ="
- L" '<a style=\\'position:absolute; left:0; top:0\\'>link</a>';"
- L"document.querySelector('a').addEventListener('click', function() {"
- L" window.didClick = true;"
- L"}, true);"));
+ "",
+ "window.didClick = false;"
+ "document.body.innerHTML ="
+ " '<a style=\\'position:absolute; left:0; top:0\\'>link</a>';"
+ "document.querySelector('a').addEventListener('click', function() {"
+ " window.didClick = true;"
+ "}, true);"));
AutomationMouseEvent automation_event;
automation_event.location_script_chain.push_back(
ScriptEvaluationRequest("{'x': 5, 'y': 10}", ""));
@@ -100,8 +100,8 @@ IN_PROC_BROWSER_TEST_F(AutomationMiscBrowserTest, ProcessMouseEvent) {
bool did_click = false;
ASSERT_TRUE(content::ExecuteJavaScriptAndExtractBool(
view,
- L"",
- L"window.domAutomationController.send(window.didClick);",
+ "",
+ "window.domAutomationController.send(window.didClick);",
&did_click));
EXPECT_TRUE(did_click);
}
« no previous file with comments | « chrome/browser/autofill/autofill_browsertest.cc ('k') | chrome/browser/automation/automation_tab_helper_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698