OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
6 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
7 #include "chrome/browser/extensions/extension_service.h" | 7 #include "chrome/browser/extensions/extension_service.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/common/chrome_notification_types.h" | 9 #include "chrome/common/chrome_notification_types.h" |
10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 L"document.defaultView.getComputedStyle(document.body, null)." | 104 L"document.defaultView.getComputedStyle(document.body, null)." |
105 L"getPropertyValue('background-color') == 'rgb(255, 0, 0)')", | 105 L"getPropertyValue('background-color') == 'rgb(255, 0, 0)')", |
106 &styles_injected)); | 106 &styles_injected)); |
107 ASSERT_TRUE(styles_injected); | 107 ASSERT_TRUE(styles_injected); |
108 } | 108 } |
109 | 109 |
110 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContentScriptCSSLocalization) { | 110 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContentScriptCSSLocalization) { |
111 ASSERT_TRUE(StartTestServer()); | 111 ASSERT_TRUE(StartTestServer()); |
112 ASSERT_TRUE(RunExtensionTest("content_scripts/css_l10n")) << message_; | 112 ASSERT_TRUE(RunExtensionTest("content_scripts/css_l10n")) << message_; |
113 } | 113 } |
| 114 |
| 115 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ContentScriptExtensionAPIs) { |
| 116 ASSERT_TRUE(StartTestServer()); |
| 117 LoadExtension(test_data_dir_.AppendASCII("content_scripts/extension_api")); |
| 118 ResultCatcher catcher; |
| 119 ui_test_utils::NavigateToURL( |
| 120 browser(), test_server()->GetURL("functions.html")); |
| 121 EXPECT_TRUE(catcher.GetNextResult()); |
| 122 } |
OLD | NEW |