Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(764)

Unified Diff: LayoutTests/http/tests/serviceworker/resources/cache-match-worker.js

Issue 927723003: Removing prefixMatch attribute of CacheQueryOptions- Blink Side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: After rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/serviceworker/resources/cache-match-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/cache-match-worker.js b/LayoutTests/http/tests/serviceworker/resources/cache-match-worker.js
index c3b6524d3def08e404f8aef35a68c2d97f820fc3..774297c72c89e23ed33ca20a8bd9b5646bcbfeae 100644
--- a/LayoutTests/http/tests/serviceworker/resources/cache-match-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/cache-match-worker.js
@@ -312,104 +312,6 @@ prepopulated_cache_test(simple_entries, function(cache, entries) {
}, 'Cache.match with string fragment "http" as query');
prepopulated_cache_test(simple_entries, function(cache, entries) {
- return cache.matchAll('http://example.com/cat',
- {prefixMatch: true})
- .then(function(result) {
- assert_array_equivalent(
- result,
- [
- entries.cat.response,
- entries.catmandu.response,
- entries.cat_num_lives.response,
- entries.cat_in_the_hat.response
- ],
- 'Cache.matchAll should honor prefixMatch.');
- });
- }, 'Cache.matchAll with prefixMatch option');
-
-prepopulated_cache_test(simple_entries, function(cache, entries) {
- return cache.match('http://example.com/cat',
- {prefixMatch: true})
- .then(function(result) {
- assert_object_in_array(
- result,
- [
- entries.cat.response,
- entries.catmandu.response,
- entries.cat_num_lives.response,
- entries.cat_in_the_hat.response
- ],
- 'Cache.match should honor prefixMatch.');
- });
- }, 'Cache.match with prefixMatch option');
-
-prepopulated_cache_test(simple_entries, function(cache, entries) {
- return cache.matchAll('http://example.com/cat/',
- {prefixMatch: true})
- .then(function(result) {
- assert_array_equivalent(
- result, [entries.cat_in_the_hat.response],
- 'Cache.matchAll should honor prefixMatch.');
- });
- }, 'Cache.matchAll with prefixMatch option (URL ending with path delimiter)');
-
-prepopulated_cache_test(simple_entries, function(cache, entries) {
- return cache.match('http://example.com/cat/',
- {prefixMatch: true})
- .then(function(result) {
- assert_object_equals(
- result, entries.cat_in_the_hat.response,
- 'Cache.match should honor prefixMatch.');
- });
- }, 'Cache.match with prefixMatch option (URL ending with path delimiter)');
-
-prepopulated_cache_test(simple_entries, function(cache, entries) {
- return cache.matchAll('http://tom:jerry@example.com', {prefixMatch: true})
- .then(function(result) {
- assert_array_equivalent(
- result,
- [
- entries.secret_cat.response,
- ],
- 'Cache.matchAll should honor prefixMatch.');
- });
- }, 'Cache.matchAll with prefixMatch option (URL with embedded credentials)');
-
-prepopulated_cache_test(simple_entries, function(cache, entries) {
- return cache.match('http://tom:jerry@example.com', {prefixMatch: true})
- .then(function(result) {
- assert_object_equals(
- result, entries.secret_cat.response,
- 'Cache.match should honor prefixMatch.');
- });
- }, 'Cache.match with prefixMatch option (URL with embedded credentials)');
-
-prepopulated_cache_test(simple_entries, function(cache, entries) {
- // The string 'http://tom' should be converted to a URL and then serialized
- // yielding 'http://tom/'. The trailing slash prevents the URL from matching
- // the embedded credentials in the entries already in the cache.
- return cache.matchAll('http://tom', {prefixMatch: true})
- .then(function(result) {
- assert_array_equivalent(
- result, [],
- 'Cache.matchAll should honor prefixMatch.');
- });
- },
- 'Cache.matchAll with prefixMatch option (URL matching embedded credentials)');
-
-prepopulated_cache_test(simple_entries, function(cache, entries) {
- // The string 'http://tom' should be converted to a URL and then serialized
- // yielding 'http://tom/'. The trailing slash prevents the URL from matching
- // the embedded credentials in the entries already in the cache.
- return cache.match('http://tom', {prefixMatch: true})
- .then(function(result) {
- assert_equals(result, undefined,
- 'Cache.match should honor prefixMatch.');
- });
- },
- 'Cache.match with prefixMatch option (URL matching embedded credentials)');
-
-prepopulated_cache_test(simple_entries, function(cache, entries) {
return cache.matchAll(entries.secret_cat.request.url)
.then(function(result) {
assert_array_equivalent(
« no previous file with comments | « LayoutTests/http/tests/serviceworker/resources/cache-delete-worker.js ('k') | Source/modules/serviceworkers/Cache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698