| Index: chrome/common/extensions/extension_manifests_unittest.cc
|
| diff --git a/chrome/common/extensions/extension_manifests_unittest.cc b/chrome/common/extensions/extension_manifests_unittest.cc
|
| index ccc921031d496ed89939d926b3d2df33cc2378a3..6ba645035be31881d6007d953fcc35388d18df9a 100644
|
| --- a/chrome/common/extensions/extension_manifests_unittest.cc
|
| +++ b/chrome/common/extensions/extension_manifests_unittest.cc
|
| @@ -987,6 +987,7 @@ TEST_F(ExtensionManifestTest, BackgroundPage) {
|
| LoadAndExpectSuccess("background_page.json"));
|
| ASSERT_TRUE(extension);
|
| EXPECT_EQ("/foo.html", extension->GetBackgroundURL().path());
|
| + EXPECT_TRUE(extension->allow_background_js_access());
|
|
|
| std::string error;
|
| scoped_ptr<DictionaryValue> manifest(
|
| @@ -1027,6 +1028,13 @@ TEST_F(ExtensionManifestTest, BackgroundScripts) {
|
| errors::kInvalidBackgroundCombination);
|
| }
|
|
|
| +TEST_F(ExtensionManifestTest, BackgroundAllowNoJsAccess) {
|
| + scoped_refptr<Extension> extension;
|
| + extension = LoadAndExpectSuccess("background_allow_no_js_access.json");
|
| + ASSERT_TRUE(extension);
|
| + EXPECT_FALSE(extension->allow_background_js_access());
|
| +}
|
| +
|
| TEST_F(ExtensionManifestTest, PageActionManifestVersion2) {
|
| scoped_refptr<Extension> extension(
|
| LoadAndExpectSuccess("page_action_manifest_version_2.json"));
|
|
|