Chromium Code Reviews| Index: LayoutTests/http/tests/serviceworker/resources/install-event-type.js |
| diff --git a/LayoutTests/http/tests/serviceworker/resources/install-event-type.js b/LayoutTests/http/tests/serviceworker/resources/install-event-type.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..23084a2dce3b188091336b5b24b80dfc3bf03223 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/serviceworker/resources/install-event-type.js |
| @@ -0,0 +1,8 @@ |
| +importScripts('worker-testharness.js'); |
| +importScripts('/resources/testharness-helpers.js'); |
|
falken
2015/04/08 05:44:46
I think you don't need this file, so please remove
Paritosh Kumar
2015/04/08 06:44:06
Agree. Thanks.
|
| + |
| +self.oninstall = function(event) { |
|
falken
2015/04/08 05:44:46
I think you can do assert_true(event instanceof 'E
Paritosh Kumar
2015/04/08 06:44:06
Ohhk, Thanks. I forgot to use instanceof.
|
| + assert_equals(event.type, 'install'); |
| + assert_equals(event.cancelable, false); |
| + assert_equals(event.bubbles, false); |
| +}; |