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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-matchAll.js

Issue 1926813004: Replace assert_promise_rejects with upstream promise_rejects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove all testharness-helpers.js references Created 4 years, 7 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/testharness-helpers.js');
4 importScripts('../resources/test-helpers.js'); 3 importScripts('../resources/test-helpers.js');
5 } 4 }
6 5
7 prepopulated_cache_test(simple_entries, function(cache, entries) { 6 prepopulated_cache_test(simple_entries, function(cache, entries) {
8 return cache.matchAll('not-present-in-the-cache') 7 return cache.matchAll('not-present-in-the-cache')
9 .then(function(result) { 8 .then(function(result) {
10 assert_response_array_equivalent( 9 assert_response_array_equivalent(
11 result, [], 10 result, [],
12 'Cache.matchAll should resolve with an empty array on failure.'); 11 'Cache.matchAll should resolve with an empty array on failure.');
13 }); 12 });
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 [ 167 [
169 entries.vary_cookie_is_cookie.response, 168 entries.vary_cookie_is_cookie.response,
170 entries.vary_cookie_is_good.response, 169 entries.vary_cookie_is_good.response,
171 entries.vary_cookie_absent.response 170 entries.vary_cookie_absent.response
172 ], 171 ],
173 'Cache.matchAll should honor "ignoreVary" parameter.'); 172 'Cache.matchAll should honor "ignoreVary" parameter.');
174 }); 173 });
175 }, 'Cache.matchAll with "ignoreVary" parameter'); 174 }, 'Cache.matchAll with "ignoreVary" parameter');
176 175
177 done(); 176 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698