| OLD | NEW |
| 1 importScripts('interfaces.js'); | 1 importScripts('interfaces.js'); |
| 2 importScripts('worker-testharness.js'); | 2 importScripts('worker-testharness.js'); |
| 3 | 3 |
| 4 var EVENT_HANDLER = 'object'; | 4 var EVENT_HANDLER = 'object'; |
| 5 | 5 |
| 6 test(function() { | 6 test(function() { |
| 7 verify_interface('ServiceWorkerGlobalScope', | 7 verify_interface('ServiceWorkerGlobalScope', |
| 8 self, | 8 self, |
| 9 { | 9 { |
| 10 clients: 'object', | 10 clients: 'object', |
| 11 close: 'function', | |
| 12 registration: 'object', | 11 registration: 'object', |
| 13 skipWaiting: 'function', | 12 skipWaiting: 'function', |
| 14 | 13 |
| 15 onactivate: EVENT_HANDLER, | 14 onactivate: EVENT_HANDLER, |
| 16 onfetch: EVENT_HANDLER, | 15 onfetch: EVENT_HANDLER, |
| 17 oninstall: EVENT_HANDLER, | 16 oninstall: EVENT_HANDLER, |
| 18 onmessage: EVENT_HANDLER | 17 onmessage: EVENT_HANDLER |
| 19 }); | 18 }); |
| 20 }, 'ServiceWorkerGlobalScope'); | 19 }, 'ServiceWorkerGlobalScope'); |
| 21 | 20 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 true, | 107 true, |
| 109 'FetchEvent.isReload with option {isReload: true} should be true'); | 108 'FetchEvent.isReload with option {isReload: true} should be true'); |
| 110 assert_equals( | 109 assert_equals( |
| 111 new FetchEvent( | 110 new FetchEvent( |
| 112 'FetchEvent', | 111 'FetchEvent', |
| 113 {request: req, isReload: true}).request.url, | 112 {request: req, isReload: true}).request.url, |
| 114 'https://www.example.com/', | 113 'https://www.example.com/', |
| 115 'FetchEvent.request.url should return the value it was ' + | 114 'FetchEvent.request.url should return the value it was ' + |
| 116 'initialized to'); | 115 'initialized to'); |
| 117 }, 'Event constructors'); | 116 }, 'Event constructors'); |
| OLD | NEW |