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

Unified Diff: chrome/browser/automation/automation_misc_browsertest.cc

Issue 11734018: Revert 174880 due to compilation error in pdf_browsertest.cc (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1374/src/
Patch Set: 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
===================================================================
--- chrome/browser/automation/automation_misc_browsertest.cc (revision 174946)
+++ chrome/browser/automation/automation_misc_browsertest.cc (working copy)
@@ -75,13 +75,13 @@
chrome::GetActiveWebContents(browser())->GetRenderViewHost();
ASSERT_TRUE(content::ExecuteJavaScript(
view,
- "",
- "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);"));
+ 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);"));
AutomationMouseEvent automation_event;
automation_event.location_script_chain.push_back(
ScriptEvaluationRequest("{'x': 5, 'y': 10}", ""));
@@ -100,8 +100,8 @@
bool did_click = false;
ASSERT_TRUE(content::ExecuteJavaScriptAndExtractBool(
view,
- "",
- "window.domAutomationController.send(window.didClick);",
+ L"",
+ L"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