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