| 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('ServiceWorkerContainer', | 10 verify_interface('ServiceWorkerContainer', |
| 11 navigator.serviceWorker, | 11 navigator.serviceWorker, |
| 12 { | 12 { |
| 13 register: 'function', | 13 register: 'function', |
| 14 unregister: 'function' | 14 unregister: 'function' |
| 15 }); | 15 }); |
| 16 | 16 |
| 17 }, 'Interfaces and attributes of ServiceWorkerContainer'); | 17 }, 'Interfaces and attributes of ServiceWorkerContainer'); |
| 18 | 18 |
| 19 service_worker_test( | 19 service_worker_test( |
| 20 'resources/interfaces-worker.js', | 20 'resources/interfaces-worker.js', |
| 21 'Interfaces and attributes in ServiceWorkerGlobalScope'); | 21 'Interfaces and attributes in ServiceWorkerGlobalScope'); |
| 22 | 22 |
| 23 </script> | 23 </script> |
| OLD | NEW |