From 8fc500d1b5d8b5bfddf829132606f91df1a841e6 Mon Sep 17 00:00:00 2001 From: "aa@chromium.org" Date: Mon, 3 Aug 2009 06:50:41 +0000 Subject: 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 --- chrome/common/extensions/url_pattern_unittest.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'chrome/common/extensions/url_pattern_unittest.cc') 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 -- cgit v1.1