OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- This test is prefixed with `chromium.` because it asserts the behavior of |
| 3 the HTTP cache. This behavior does not violate any standard but neither is it |
| 4 required. --> |
2 <title>Service Worker: Registration update() served from cache</title> | 5 <title>Service Worker: Registration update() served from cache</title> |
3 <script src="../resources/testharness.js"></script> | 6 <script src="../resources/testharness.js"></script> |
4 <script src="../resources/testharnessreport.js"></script> | 7 <script src="../resources/testharnessreport.js"></script> |
5 <script src="resources/test-helpers.js"></script> | 8 <script src="resources/test-helpers.js"></script> |
6 <script> | 9 <script> |
7 promise_test(function(t) { | 10 promise_test(function(t) { |
8 var scope = 'resources/scope/update-served-from-cache'; | 11 var scope = 'resources/scope/update-served-from-cache'; |
9 var worker_url = 'resources/update-served-from-cache-worker.php'; | 12 var worker_url = 'resources/update-served-from-cache-worker.php'; |
10 var registration; | 13 var registration; |
11 | 14 |
(...skipping 12 matching lines...) Expand all Loading... |
24 .then(function() { | 27 .then(function() { |
25 // installing should be null as update() does not trigger install. | 28 // installing should be null as update() does not trigger install. |
26 assert_equals( | 29 assert_equals( |
27 registration.installing, | 30 registration.installing, |
28 null, | 31 null, |
29 'installing should be null as the script was served from cache.'); | 32 'installing should be null as the script was served from cache.'); |
30 return service_worker_unregister_and_done(t, scope); | 33 return service_worker_unregister_and_done(t, scope); |
31 }); | 34 }); |
32 }, 'Update a registration served from cache.'); | 35 }, 'Update a registration served from cache.'); |
33 </script> | 36 </script> |
OLD | NEW |