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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/cache-storage/script-tests/cache-add.js

Issue 2790143003: Cache Storage API tests: Fix WPT test bugs, remove redundant local copies (Closed)
Patch Set: Created 3 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: third_party/WebKit/LayoutTests/external/wpt/service-workers/cache-storage/script-tests/cache-add.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/cache-storage/script-tests/cache-add.js b/third_party/WebKit/LayoutTests/external/wpt/service-workers/cache-storage/script-tests/cache-add.js
index 237ba473504c359bb98eea363a127e9d26ee1609..c03faeb0e83723eab64e648e600ba0612873d404 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/service-workers/cache-storage/script-tests/cache-add.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/cache-storage/script-tests/cache-add.js
@@ -84,7 +84,7 @@ cache_test(function(cache) {
}, 'Cache.add with request with null body (not consumed)');
cache_test(function(cache, test) {
- return assert_promise_rejects(
+ return promise_rejects(
test,
new TypeError(),
cache.add('../resources/fetch-status.py?status=206'),
@@ -98,6 +98,7 @@ cache_test(function(cache, test) {
return new Request(url);
});
return promise_rejects(
+ test,
new TypeError(),
cache.addAll(requests),
'Cache.addAll should reject with TypeError if any request fails');
@@ -116,7 +117,7 @@ cache_test(function(cache, test) {
return promise_rejects(
test,
new TypeError(),
- cache.add('../resources/fetch-status.php?status=500'),
+ cache.add('../resources/fetch-status.py?status=500'),
'Cache.add should reject if response is !ok');
}, 'Cache.add with request that results in a status of 500');

Powered by Google App Engine
This is Rietveld 408576698