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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/cache-storage/script-tests/cache-storage-keys.js

Issue 2547023002: Import wpt@3c8896ae408c8fd594979da7c99970029e7856a7 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 4 years 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