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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/events-worker.js

Issue 2893743003: Upstream service wrkr "registration" tests to WPT (Closed)
Patch Set: Created 3 years, 7 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: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/events-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/events-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/events-worker.js
deleted file mode 100644
index 80a2188677ba5a9cc728158dbf10fd973bbc0f27..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/events-worker.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var eventsSeen = [];
-
-function handler(event) { eventsSeen.push(event.type); }
-
-['activate', 'install'].forEach(function(type) {
- self.addEventListener(type, handler);
- });
-
-onmessage = function(e) {
- var message = e.data;
- message.port.postMessage({events: eventsSeen});
-};

Powered by Google App Engine
This is Rietveld 408576698