| OLD | NEW |
| 1 importScripts('interfaces.js'); | 1 importScripts('interfaces.js'); |
| 2 importScripts('worker-testharness.js'); | 2 importScripts('worker-testharness.js'); |
| 3 importScripts('/resources/testharness-helpers.js'); | 3 importScripts('/resources/testharness-helpers.js'); |
| 4 | 4 |
| 5 var EVENT_HANDLER = 'object'; | 5 var EVENT_HANDLER = 'object'; |
| 6 | 6 |
| 7 test(function() { | 7 test(function() { |
| 8 verify_interface('ServiceWorkerGlobalScope', | 8 verify_interface('ServiceWorkerGlobalScope', |
| 9 self, | 9 self, |
| 10 { | 10 { |
| 11 scope: 'string', | 11 scope: 'string', |
| 12 clients: 'object', | 12 clients: 'object', |
| 13 close: 'function', | 13 close: 'function', |
| 14 skipWaiting: 'function', |
| 14 | 15 |
| 15 onactivate: EVENT_HANDLER, | 16 onactivate: EVENT_HANDLER, |
| 16 onfetch: EVENT_HANDLER, | 17 onfetch: EVENT_HANDLER, |
| 17 oninstall: EVENT_HANDLER, | 18 oninstall: EVENT_HANDLER, |
| 18 onmessage: EVENT_HANDLER | 19 onmessage: EVENT_HANDLER |
| 19 }); | 20 }); |
| 20 }, 'ServiceWorkerGlobalScope'); | 21 }, 'ServiceWorkerGlobalScope'); |
| 21 | 22 |
| 22 test(function() { | 23 test(function() { |
| 23 verify_interface('ServiceWorkerClients', | 24 verify_interface('ServiceWorkerClients', |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 65 |
| 65 test(function() { | 66 test(function() { |
| 66 assert_equals(new ExtendableEvent('ExtendableEvent').type, 'ExtendableEvent'
); | 67 assert_equals(new ExtendableEvent('ExtendableEvent').type, 'ExtendableEvent'
); |
| 67 assert_equals(new InstallEvent('InstallEvent').type, 'InstallEvent'); | 68 assert_equals(new InstallEvent('InstallEvent').type, 'InstallEvent'); |
| 68 | 69 |
| 69 assert_equals(new InstallEvent('InstallEvent').cancelable, false); | 70 assert_equals(new InstallEvent('InstallEvent').cancelable, false); |
| 70 assert_equals(new InstallEvent('InstallEvent').bubbles, false); | 71 assert_equals(new InstallEvent('InstallEvent').bubbles, false); |
| 71 assert_equals(new InstallEvent('InstallEvent', { cancelable : true }).cancel
able, true); | 72 assert_equals(new InstallEvent('InstallEvent', { cancelable : true }).cancel
able, true); |
| 72 assert_equals(new InstallEvent('InstallEvent', { bubbles : true }).bubbles,
true); | 73 assert_equals(new InstallEvent('InstallEvent', { bubbles : true }).bubbles,
true); |
| 73 }, 'Event constructors'); | 74 }, 'Event constructors'); |
| OLD | NEW |