diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 06:50:41 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 06:50:41 +0000 |
commit | 8fc500d1b5d8b5bfddf829132606f91df1a841e6 (patch) | |
tree | 8f4567d80363afbdd26bfd5e6b0590822d789120 /chrome/common/extensions/url_pattern_unittest.cc | |
parent | 9320f85bc4fcdb342288821697d0e988d4d670ed (diff) | |
download | chromium_src-8fc500d1b5d8b5bfddf829132606f91df1a841e6.zip chromium_src-8fc500d1b5d8b5bfddf829132606f91df1a841e6.tar.gz chromium_src-8fc500d1b5d8b5bfddf829132606f91df1a841e6.tar.bz2 |
When a content script has a match pattern of http://*/*, we
should run on web pages that have an IP address for their
host.
BUG=18256
TEST=Added unit test
Review URL: http://codereview.chromium.org/159767
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22260 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/url_pattern_unittest.cc')
-rw-r--r-- | chrome/common/extensions/url_pattern_unittest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/common/extensions/url_pattern_unittest.cc b/chrome/common/extensions/url_pattern_unittest.cc index f3fec47..3eff503 100644 --- a/chrome/common/extensions/url_pattern_unittest.cc +++ b/chrome/common/extensions/url_pattern_unittest.cc @@ -37,6 +37,7 @@ TEST(URLPatternTest, Match1) { EXPECT_TRUE(pattern.MatchesUrl(GURL("http://yahoo.com"))); EXPECT_TRUE(pattern.MatchesUrl(GURL("http://google.com/foo"))); EXPECT_FALSE(pattern.MatchesUrl(GURL("https://google.com"))); + EXPECT_TRUE(pattern.MatchesUrl(GURL("http://74.125.127.100/search"))); } // all domains |