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

Side by Side Diff: chrome/browser/extensions/content_script_apitest.cc

Issue 8540012: Enable extension APIs for content scripts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_match.cc ('k') | chrome/browser/extensions/extension_devtools_events.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698