| 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 32ed8a00ffd2c00336f7d4552e2743e7ac8a0180..fa72cb4d8b2f0ab4097a59e9e5bc54a36ed83ba4 100644
|
| --- a/chrome/browser/extensions/extension_keybinding_apitest.cc
|
| +++ b/chrome/browser/extensions/extension_keybinding_apitest.cc
|
| @@ -89,9 +89,8 @@ IN_PROC_BROWSER_TEST_F(CommandsApiTest, Basic) {
|
|
|
| // Verify the command worked.
|
| bool result = false;
|
| - ASSERT_TRUE(content::ExecuteJavaScriptAndExtractBool(
|
| - tab->GetRenderViewHost(),
|
| - "",
|
| + ASSERT_TRUE(content::ExecuteScriptAndExtractBool(
|
| + tab,
|
| "setInterval(function(){"
|
| " if(document.body.bgColor == 'red'){"
|
| " window.domAutomationController.send(true)}}, 100)",
|
| @@ -103,9 +102,8 @@ IN_PROC_BROWSER_TEST_F(CommandsApiTest, Basic) {
|
| browser(), ui::VKEY_Y, true, true, false, false));
|
|
|
| result = false;
|
| - ASSERT_TRUE(content::ExecuteJavaScriptAndExtractBool(
|
| - tab->GetRenderViewHost(),
|
| - "",
|
| + ASSERT_TRUE(content::ExecuteScriptAndExtractBool(
|
| + tab,
|
| "setInterval(function(){"
|
| " if(document.body.bgColor == 'blue'){"
|
| " window.domAutomationController.send(true)}}, 100)",
|
| @@ -151,9 +149,8 @@ IN_PROC_BROWSER_TEST_F(CommandsApiTest, MAYBE_PageAction) {
|
| // Verify the command worked (the page action turns the page red).
|
| WebContents* tab = chrome::GetActiveWebContents(browser());
|
| bool result = false;
|
| - ASSERT_TRUE(content::ExecuteJavaScriptAndExtractBool(
|
| - tab->GetRenderViewHost(),
|
| - "",
|
| + ASSERT_TRUE(content::ExecuteScriptAndExtractBool(
|
| + tab,
|
| "setInterval(function(){"
|
| " if(document.body.bgColor == 'red'){"
|
| " window.domAutomationController.send(true)}}, 100)",
|
|
|