diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-14 04:15:16 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-14 04:15:16 +0000 |
commit | 0afe827a49501c6801c3c9efbbdb1f64aa010beb (patch) | |
tree | dba6031dd45eb3f0a0435b9750976b1cd432abc1 /chrome/common/extensions/user_script_unittest.cc | |
parent | 27eef9c8edf84061f4e36a3bd26ff7538092a22b (diff) | |
download | chromium_src-0afe827a49501c6801c3c9efbbdb1f64aa010beb.zip chromium_src-0afe827a49501c6801c3c9efbbdb1f64aa010beb.tar.gz chromium_src-0afe827a49501c6801c3c9efbbdb1f64aa010beb.tar.bz2 |
Add early-injection capability to user scripts.
Review URL: http://codereview.chromium.org/19624
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9822 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/user_script_unittest.cc')
-rw-r--r-- | chrome/common/extensions/user_script_unittest.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/extensions/user_script_unittest.cc b/chrome/common/extensions/user_script_unittest.cc index 72204f4..2be936a 100644 --- a/chrome/common/extensions/user_script_unittest.cc +++ b/chrome/common/extensions/user_script_unittest.cc @@ -78,6 +78,7 @@ TEST(UserScriptTest, Pickle) { UserScript script1; script1.set_url(GURL("chrome-user-script:/foo.user.js")); + script1.set_run_location(UserScript::DOCUMENT_START); script1.add_url_pattern(pattern1); script1.add_url_pattern(pattern2); @@ -99,3 +100,8 @@ TEST(UserScriptTest, Pickle) { script2.url_patterns()[i].GetAsString()); } } + +TEST(UserScriptTest, Defaults) { + UserScript script; + ASSERT_EQ(UserScript::DOCUMENT_END, script.run_location()); +} |