OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/ref_counted.h" | 5 #include "base/ref_counted.h" |
6 #include "chrome/browser/browser.h" | 6 #include "chrome/browser/browser.h" |
7 #include "chrome/browser/browser_list.h" | 7 #include "chrome/browser/browser_list.h" |
8 #include "chrome/browser/renderer_host/render_view_host.h" | 8 #include "chrome/browser/renderer_host/render_view_host.h" |
9 #include "chrome/browser/extensions/extension_browsertest.h" | 9 #include "chrome/browser/extensions/extension_browsertest.h" |
10 #include "chrome/browser/extensions/extension_host.h" | 10 #include "chrome/browser/extensions/extension_host.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 ui_test_utils::ExecuteJavaScriptAndExtractBool( | 123 ui_test_utils::ExecuteJavaScriptAndExtractBool( |
124 host->render_view_host(), L"", L"testgetBackgroundPageAPI()", &result); | 124 host->render_view_host(), L"", L"testgetBackgroundPageAPI()", &result); |
125 EXPECT_TRUE(result); | 125 EXPECT_TRUE(result); |
126 | 126 |
127 ui_test_utils::NavigateToURL( | 127 ui_test_utils::NavigateToURL( |
128 browser(), | 128 browser(), |
129 GURL("chrome-extension://behllobkkfkfnphdnhnkndlbkcpglgmj/" | 129 GURL("chrome-extension://behllobkkfkfnphdnhnkndlbkcpglgmj/" |
130 "test_gettabs.html")); | 130 "test_gettabs.html")); |
131 result = false; | 131 result = false; |
132 ui_test_utils::ExecuteJavaScriptAndExtractBool( | 132 ui_test_utils::ExecuteJavaScriptAndExtractBool( |
133 host->render_view_host(), L"", L"testgetTabContentsesAPI()", &result); | 133 host->render_view_host(), L"", L"testgetExtensionTabs()", &result); |
134 EXPECT_TRUE(result); | 134 EXPECT_TRUE(result); |
135 } | 135 } |
136 #endif // defined(OS_WIN) | 136 #endif // defined(OS_WIN) |
137 | 137 |
138 #if defined(OS_WIN) // TODO(port) -- enable | 138 #if defined(OS_WIN) // TODO(port) -- enable |
139 // Tests that the ExtensionShelf initializes properly, notices that | 139 // Tests that the ExtensionShelf initializes properly, notices that |
140 // an extension loaded and has a view available, and then sets that up | 140 // an extension loaded and has a view available, and then sets that up |
141 // properly. | 141 // properly. |
142 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, Shelf) { | 142 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, Shelf) { |
143 // When initialized, there are no extension views and the preferred height | 143 // When initialized, there are no extension views and the preferred height |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 tab->render_view_host(), L"", L"testPluginWorks()", &result); | 707 tab->render_view_host(), L"", L"testPluginWorks()", &result); |
708 EXPECT_TRUE(result); | 708 EXPECT_TRUE(result); |
709 browser()->Reload(); | 709 browser()->Reload(); |
710 ui_test_utils::WaitForNavigationInCurrentTab(browser()); | 710 ui_test_utils::WaitForNavigationInCurrentTab(browser()); |
711 | 711 |
712 ui_test_utils::ExecuteJavaScriptAndExtractBool( | 712 ui_test_utils::ExecuteJavaScriptAndExtractBool( |
713 tab->render_view_host(), L"", L"testPluginWorks()", &result); | 713 tab->render_view_host(), L"", L"testPluginWorks()", &result); |
714 EXPECT_FALSE(result); | 714 EXPECT_FALSE(result); |
715 } | 715 } |
716 #endif | 716 #endif |
OLD | NEW |