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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-match.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 (function() { 6 (function() {
8 var next_index = 1; 7 var next_index = 1;
9 8
10 // Returns a transaction (request, response, and url) for a unique URL. 9 // Returns a transaction (request, response, and url) for a unique URL.
11 function create_unique_transaction(test) { 10 function create_unique_transaction(test) {
12 var uniquifier = String(next_index++); 11 var uniquifier = String(next_index++);
13 var url = 'http://example.com/' + uniquifier; 12 var url = 'http://example.com/' + uniquifier;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 assert_equals(err.name, 'NotFoundError', 116 assert_equals(err.name, 'NotFoundError',
118 'The match should reject with NotFoundError.'); 117 'The match should reject with NotFoundError.');
119 return self.caches.has('foo'); 118 return self.caches.has('foo');
120 }) 119 })
121 .then(function(has_foo) { 120 .then(function(has_foo) {
122 assert_false(has_foo, "The cache should still not exist."); 121 assert_false(has_foo, "The cache should still not exist.");
123 }) 122 })
124 }, 'CacheStorageMatch with no caches available but name provided'); 123 }, 'CacheStorageMatch with no caches available but name provided');
125 124
126 done(); 125 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698