OLD | NEW |
1 importScripts('worker-testharness.js'); | 1 importScripts('worker-testharness.js'); |
2 | 2 |
3 self.oninstall = function(event) { | 3 self.oninstall = function(event) { |
4 assert_true(event instanceof ExtendableEvent); | 4 assert_true(event instanceof ExtendableEvent, 'instance of ExtendableEvent')
; |
5 assert_equals(event.type, 'install'); | 5 assert_true(event instanceof InstallEvent, 'instance of InstallEvent'); |
6 assert_false(event.cancelable); | 6 assert_equals(event.type, 'install', '`type` property value'); |
7 assert_false(event.bubbles); | 7 assert_false(event.cancelable, '`cancelable` property value'); |
| 8 assert_false(event.bubbles, '`bubbles` property value'); |
8 }; | 9 }; |
OLD | NEW |