| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Service Worker: Interfaces</title> | 2 <title>Service Worker: Interfaces</title> |
| 3 <script src="../resources/testharness.js"></script> | 3 <script src="../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> | 4 <script src="../resources/testharnessreport.js"></script> |
| 5 <script src="resources/interfaces.js"></script> | 5 <script src="resources/interfaces.js"></script> |
| 6 <script src="resources/test-helpers.js"></script> | 6 <script src="resources/test-helpers.js"></script> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 test(function() { | 9 test(function() { |
| 10 verifyInterface( | 10 verifyInterface( |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 onupdatefound: EVENT_HANDLER | 35 onupdatefound: EVENT_HANDLER |
| 36 }); | 36 }); |
| 37 return wait_for_update(t, registration); | 37 return wait_for_update(t, registration); |
| 38 }) | 38 }) |
| 39 .then(function(worker) { | 39 .then(function(worker) { |
| 40 verifyInterface( | 40 verifyInterface( |
| 41 'ServiceWorker', worker, | 41 'ServiceWorker', worker, |
| 42 { | 42 { |
| 43 scriptURL: 'string', | 43 scriptURL: 'string', |
| 44 state: 'string', | 44 state: 'string', |
| 45 terminate: 'function', |
| 45 onstatechange: EVENT_HANDLER | 46 onstatechange: EVENT_HANDLER |
| 46 }); | 47 }); |
| 47 return registration.unregister(); | 48 return registration.unregister(); |
| 48 }) | 49 }) |
| 49 .then(function() { | 50 .then(function() { |
| 50 t.done(); | 51 t.done(); |
| 51 }) | 52 }) |
| 52 .catch(unreached_rejection(t)); | 53 .catch(unreached_rejection(t)); |
| 53 }, 'Interfaces and attributes of ServiceWorker'); | 54 }, 'Interfaces and attributes of ServiceWorker'); |
| 54 | 55 |
| 55 service_worker_test( | 56 service_worker_test( |
| 56 'resources/interfaces-worker.js', | 57 'resources/interfaces-worker.js', |
| 57 'Interfaces and attributes in ServiceWorkerGlobalScope'); | 58 'Interfaces and attributes in ServiceWorkerGlobalScope'); |
| 58 | 59 |
| 59 </script> | 60 </script> |
| OLD | NEW |