| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- This test is prefixed with `chromium.` because the equivalent version |
| 3 available in Web Platform Tests is known to cause timeout errors in the |
| 4 Chromium automated build system. It should be maintained only to preserve |
| 5 test converage until the corresponding versions in Web Platform Tests can be |
| 6 made to pass consistently. See https://crbug.com/658997 --> |
| 2 <title>Service Worker: getRegistrations()</title> | 7 <title>Service Worker: getRegistrations()</title> |
| 3 <script src="../resources/testharness.js"></script> | 8 <script src="../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> | 9 <script src="../resources/testharnessreport.js"></script> |
| 5 <script src="resources/test-helpers.js"></script> | 10 <script src="resources/test-helpers.js"></script> |
| 6 <script src="../resources/get-host-info.js"></script> | 11 <script src="../resources/get-host-info.js"></script> |
| 7 <script> | 12 <script> |
| 8 // Purge the existing registrations for the origin. | 13 // Purge the existing registrations for the origin. |
| 9 // getRegistrations() is used in order to avoid adding additional complexity | 14 // getRegistrations() is used in order to avoid adding additional complexity |
| 10 // e.g. adding an internal function. | 15 // e.g. adding an internal function. |
| 11 promise_test(function(t) { | 16 promise_test(function(t) { |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 return p; | 145 return p; |
| 141 }) | 146 }) |
| 142 .then(function() { | 147 .then(function() { |
| 143 frame.remove(); | 148 frame.remove(); |
| 144 return service_worker_unregister(t, scope); | 149 return service_worker_unregister(t, scope); |
| 145 }); | 150 }); |
| 146 }, 'getRegistrations promise resolves only with same origin registrations.'); | 151 }, 'getRegistrations promise resolves only with same origin registrations.'); |
| 147 | 152 |
| 148 done(); | 153 done(); |
| 149 </script> | 154 </script> |
| OLD | NEW |