| 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(
|
|
|