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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/cache-storage/script-tests/cache-keys.js

Issue 2790143003: Cache Storage API tests: Fix WPT test bugs, remove redundant local copies (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 if (self.importScripts) { 1 if (self.importScripts) {
2 importScripts('/resources/testharness.js'); 2 importScripts('/resources/testharness.js');
3 importScripts('../resources/test-helpers.js'); 3 importScripts('../resources/test-helpers.js');
4 } 4 }
5 5
6 cache_test(cache => { 6 cache_test(cache => {
7 return cache.keys() 7 return cache.keys()
8 .then(requests => { 8 .then(requests => {
9 assert_equals( 9 assert_equals(
10 requests.length, 0, 10 requests.length, 0,
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 return cache.keys(new Request(entries.cat.request.url, {method: 'HEAD'})) 183 return cache.keys(new Request(entries.cat.request.url, {method: 'HEAD'}))
184 .then(function(result) { 184 .then(function(result) {
185 assert_request_array_equals( 185 assert_request_array_equals(
186 result, [], 186 result, [],
187 'Cache.keys should not match HEAD request unless ignoreMethod ' + 187 'Cache.keys should not match HEAD request unless ignoreMethod ' +
188 'option is set.'); 188 'option is set.');
189 }); 189 });
190 }, 'Cache.keys with a HEAD Request'); 190 }, 'Cache.keys with a HEAD Request');
191 191
192 done(); 192 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698