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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.js b/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.js
index 559a787afc312d49dac60e2653b69be99becc112..f8db82d1f6cab061b1fcc83183678aa71e523880 100644
--- a/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.js
+++ b/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage.js
@@ -1,6 +1,5 @@
if (self.importScripts) {
importScripts('/resources/testharness.js');
- importScripts('/resources/testharness-helpers.js');
importScripts('../resources/test-helpers.js');
}
@@ -31,9 +30,10 @@ promise_test(function(t) {
}, 'CacheStorage.open with an empty name');
promise_test(function(t) {
- return assert_promise_rejects(
- self.caches.open(),
+ return promise_rejects(
+ t,
new TypeError(),
+ self.caches.open(),
'CacheStorage.open should throw TypeError if called with no arguments.');
}, 'CacheStorage.open with no arguments');

Powered by Google App Engine
This is Rietveld 408576698