Index: content/browser/service_worker/service_worker_utils_unittest.cc |
diff --git a/content/browser/service_worker/service_worker_utils_unittest.cc b/content/browser/service_worker/service_worker_utils_unittest.cc |
index 766b59c0161a7e9c2d026f5f582074870ed09f2c..d7895a43bcd725acbbf935f79af4aff00999286e 100644 |
--- a/content/browser/service_worker/service_worker_utils_unittest.cc |
+++ b/content/browser/service_worker/service_worker_utils_unittest.cc |
@@ -102,6 +102,9 @@ TEST(ServiceWorkerUtilsTest, FindLongestScopeMatch) { |
// "/xxx" should be matched longer than "/xx". |
ASSERT_TRUE(matcher.MatchLongest(GURL("http://www.example.com/xxx"))); |
+ // The second call with the same URL should return false. |
+ ASSERT_FALSE(matcher.MatchLongest(GURL("http://www.example.com/xxx"))); |
+ |
ASSERT_FALSE(matcher.MatchLongest(GURL("http://www.example.com/xxxx"))); |
} |