| 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 var EVENT_HANDLER = 'object'; | 10 var EVENT_HANDLER = 'object'; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 active: 'object', | 32 active: 'object', |
| 33 scope: 'string', | 33 scope: 'string', |
| 34 unregister: 'function', | 34 unregister: 'function', |
| 35 onupdatefound: EVENT_HANDLER | 35 onupdatefound: EVENT_HANDLER |
| 36 }); | 36 }); |
| 37 verify_interface( | 37 verify_interface( |
| 38 'ServiceWorker', registration.installing, | 38 'ServiceWorker', registration.installing, |
| 39 { | 39 { |
| 40 scriptURL: 'string', | 40 scriptURL: 'string', |
| 41 state: 'string', | 41 state: 'string', |
| 42 terminate: 'function', | |
| 43 onstatechange: EVENT_HANDLER | 42 onstatechange: EVENT_HANDLER |
| 44 }); | 43 }); |
| 45 return registration.unregister(); | 44 return registration.unregister(); |
| 46 }) | 45 }) |
| 47 .then(function() { | 46 .then(function() { |
| 48 t.done(); | 47 t.done(); |
| 49 }) | 48 }) |
| 50 .catch(unreached_rejection(t)); | 49 .catch(unreached_rejection(t)); |
| 51 }, 'Interfaces and attributes of ServiceWorker'); | 50 }, 'Interfaces and attributes of ServiceWorker'); |
| 52 | 51 |
| 53 service_worker_test( | 52 service_worker_test( |
| 54 'resources/interfaces-worker.js', | 53 'resources/interfaces-worker.js', |
| 55 'Interfaces and attributes in ServiceWorkerGlobalScope'); | 54 'Interfaces and attributes in ServiceWorkerGlobalScope'); |
| 56 | 55 |
| 57 </script> | 56 </script> |
| OLD | NEW |