| OLD | NEW |
| 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 Loading... |
| 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(); |
| OLD | NEW |