| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #if defined(TOOLKIT_GTK) | 7 #if defined(TOOLKIT_GTK) |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 | 685 |
| 686 WebContents* tab = | 686 WebContents* tab = |
| 687 browser()->tab_strip_model()->GetActiveWebContents(); | 687 browser()->tab_strip_model()->GetActiveWebContents(); |
| 688 EXPECT_TRUE(tab != NULL); | 688 EXPECT_TRUE(tab != NULL); |
| 689 | 689 |
| 690 // Verify that the browser action turned the background color red. | 690 // Verify that the browser action turned the background color red. |
| 691 const std::string script = | 691 const std::string script = |
| 692 "window.domAutomationController.send(document.body.style." | 692 "window.domAutomationController.send(document.body.style." |
| 693 "backgroundColor);"; | 693 "backgroundColor);"; |
| 694 std::string result; | 694 std::string result; |
| 695 const std::string frame_xpath = ""; | 695 const std::string frame_xpath; |
| 696 EXPECT_TRUE(content::ExecuteScriptInFrameAndExtractString(tab, | 696 EXPECT_TRUE(content::ExecuteScriptInFrameAndExtractString( |
| 697 frame_xpath, | 697 tab, frame_xpath, script, &result)); |
| 698 script, | |
| 699 &result)); | |
| 700 EXPECT_EQ(result, "red"); | 698 EXPECT_EQ(result, "red"); |
| 701 } | 699 } |
| 702 | 700 |
| 703 } // namespace | 701 } // namespace |
| 704 } // namespace extensions | 702 } // namespace extensions |
| OLD | NEW |