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

Unified Diff: chrome/browser/extensions/extension_keybinding_apitest.cc

Issue 131573003: Convert DomAutomationController from CppBoundClass to gin::Wrappable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 6 years, 11 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/extensions/extension_keybinding_apitest.cc
diff --git a/chrome/browser/extensions/extension_keybinding_apitest.cc b/chrome/browser/extensions/extension_keybinding_apitest.cc
index 85e3a58fbb8ddfc7b358919945adf6a603250fe7..3a23bd01192adbb4850aac4af82c33542abbc9b7 100644
--- a/chrome/browser/extensions/extension_keybinding_apitest.cc
+++ b/chrome/browser/extensions/extension_keybinding_apitest.cc
@@ -98,6 +98,7 @@ IN_PROC_BROWSER_TEST_F(CommandsApiTest, Basic) {
tab,
"setInterval(function(){"
" if(document.body.bgColor == 'red'){"
+ " window.domAutomationController.setAutomationId(0);"
" window.domAutomationController.send(true)}}, 100)",
&result));
ASSERT_TRUE(result);
@@ -111,6 +112,7 @@ IN_PROC_BROWSER_TEST_F(CommandsApiTest, Basic) {
tab,
"setInterval(function(){"
" if(document.body.bgColor == 'blue'){"
+ " window.domAutomationController.setAutomationId(0);"
" window.domAutomationController.send(true)}}, 100)",
&result));
ASSERT_TRUE(result);
@@ -158,6 +160,7 @@ IN_PROC_BROWSER_TEST_F(CommandsApiTest, MAYBE_PageAction) {
tab,
"setInterval(function(){"
" if(document.body.bgColor == 'red'){"
+ " window.domAutomationController.setAutomationId(0);"
" window.domAutomationController.send(true)}}, 100)",
&result));
ASSERT_TRUE(result);
@@ -229,6 +232,7 @@ IN_PROC_BROWSER_TEST_F(CommandsApiTest, DontOverwriteSystemShortcuts) {
tab,
"setInterval(function() {"
" if (document.body.bgColor == 'blue') {"
+ " window.domAutomationController.setAutomationId(0);"
" window.domAutomationController.send(true)}}, 100)",
&result));
ASSERT_TRUE(result);
« no previous file with comments | « no previous file | content/renderer/dom_automation_controller.h » ('j') | content/renderer/dom_automation_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698