| OLD | NEW |
| 1 importScripts('interfaces.js'); | 1 importScripts('interfaces.js'); |
| 2 importScripts('worker-test-harness.js'); | 2 importScripts('worker-test-harness.js'); |
| 3 | 3 |
| 4 test(function() { | 4 test(function() { |
| 5 var EVENT_HANDLER = 'object'; | 5 var EVENT_HANDLER = 'object'; |
| 6 | 6 |
| 7 verifyInterface('ServiceWorkerGlobalScope', | 7 verifyInterface('ServiceWorkerGlobalScope', |
| 8 self, | 8 self, |
| 9 { | 9 { |
| 10 scope: 'string', | 10 scope: 'string', |
| 11 clients: 'object', | 11 clients: 'object', |
| 12 close: 'function', | |
| 13 | 12 |
| 14 onactivate: EVENT_HANDLER, | 13 onactivate: EVENT_HANDLER, |
| 15 onfetch: EVENT_HANDLER, | 14 onfetch: EVENT_HANDLER, |
| 16 oninstall: EVENT_HANDLER, | 15 oninstall: EVENT_HANDLER, |
| 17 onmessage: EVENT_HANDLER | 16 onmessage: EVENT_HANDLER |
| 18 }); | 17 }); |
| 19 | 18 |
| 20 verifyInterface('ServiceWorkerClients', | 19 verifyInterface('ServiceWorkerClients', |
| 21 self.clients, | 20 self.clients, |
| 22 { | 21 { |
| 23 getServiced: 'function' | 22 getServiced: 'function' |
| 24 }); | 23 }); |
| 25 | 24 |
| 26 verifyInterface('ServiceWorkerClient'); | 25 verifyInterface('ServiceWorkerClient'); |
| 27 // FIXME: Get an instance and test it, or ensure property exists on prototyp
e. | 26 // FIXME: Get an instance and test it, or ensure property exists on prototyp
e. |
| 28 | 27 |
| 29 }, 'Interfaces and attributes in ServiceWorkerGlobalScope'); | 28 }, 'Interfaces and attributes in ServiceWorkerGlobalScope'); |
| OLD | NEW |