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 verify_interface( | 11 verify_interface( |
11 'ServiceWorkerContainer', navigator.serviceWorker, | 12 'ServiceWorkerContainer', navigator.serviceWorker, |
12 { | 13 { |
13 register: 'function', | 14 register: 'function', |
14 getRegistration: 'function' | 15 getRegistration: 'function', |
| 16 oncontrollerchange: EVENT_HANDLER |
15 }); | 17 }); |
16 }, 'Interfaces and attributes of ServiceWorkerContainer'); | 18 }, 'Interfaces and attributes of ServiceWorkerContainer'); |
17 | 19 |
18 async_test(function(t) { | 20 async_test(function(t) { |
19 var EVENT_HANDLER = 'object'; | 21 var EVENT_HANDLER = 'object'; |
20 var scope = 'resources/scope/interfaces-and-attributes'; | 22 var scope = 'resources/scope/interfaces-and-attributes'; |
21 var registration; | 23 var registration; |
22 | 24 |
23 service_worker_unregister_and_register( | 25 service_worker_unregister_and_register( |
24 t, 'resources/empty-worker.js', scope) | 26 t, 'resources/empty-worker.js', scope) |
(...skipping 26 matching lines...) Expand all Loading... |
51 t.done(); | 53 t.done(); |
52 }) | 54 }) |
53 .catch(unreached_rejection(t)); | 55 .catch(unreached_rejection(t)); |
54 }, 'Interfaces and attributes of ServiceWorker'); | 56 }, 'Interfaces and attributes of ServiceWorker'); |
55 | 57 |
56 service_worker_test( | 58 service_worker_test( |
57 'resources/interfaces-worker.js', | 59 'resources/interfaces-worker.js', |
58 'Interfaces and attributes in ServiceWorkerGlobalScope'); | 60 'Interfaces and attributes in ServiceWorkerGlobalScope'); |
59 | 61 |
60 </script> | 62 </script> |
OLD | NEW |