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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/install-event-type-worker.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-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/install-event-type-worker.js b/LayoutTests/http/tests/serviceworker/resources/install-event-type-worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..d729afa090cfd7c927525b22d0012896d5988a3c
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/install-event-type-worker.js
@@ -0,0 +1,8 @@
+importScripts('worker-testharness.js');
+
+self.oninstall = function(event) {
+ assert_true(event instanceof ExtendableEvent);
+ assert_equals(event.type, 'install');
+ assert_false(event.cancelable);
+ assert_false(event.bubbles);
+};

Powered by Google App Engine
This is Rietveld 408576698