Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: LayoutTests/http/tests/serviceworker/resources/install-event-type.js

Issue 1067513002: Removing ServiceWorker's InstallEvent Interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+};

Powered by Google App Engine
This is Rietveld 408576698