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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-keys.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 var test_cache_list = 6 var test_cache_list =
8 ['', 'example', 'Another cache name', 'A', 'a', 'ex ample']; 7 ['', 'example', 'Another cache name', 'A', 'a', 'ex ample'];
9 8
10 promise_test(function(test) { 9 promise_test(function(test) {
11 return self.caches.keys() 10 return self.caches.keys()
12 .then(function(keys) { 11 .then(function(keys) {
13 assert_true(Array.isArray(keys), 12 assert_true(Array.isArray(keys),
(...skipping 13 matching lines...) Expand all
27 assert_true(Array.isArray(keys), 26 assert_true(Array.isArray(keys),
28 'CacheStorage.keys should return an Array.'); 27 'CacheStorage.keys should return an Array.');
29 assert_array_equals(keys, 28 assert_array_equals(keys,
30 test_cache_list, 29 test_cache_list,
31 'CacheStorage.keys should only return ' + 30 'CacheStorage.keys should only return ' +
32 'existing caches.'); 31 'existing caches.');
33 }); 32 });
34 }, 'CacheStorage keys'); 33 }, 'CacheStorage keys');
35 34
36 done(); 35 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698