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

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/resources/ping-worker.js

Issue 695643002: Add terminateServiceWorker method for layout tests - blink side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 6 years, 1 month 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/chromium/resources/ping-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/chromium/resources/ping-worker.js b/LayoutTests/http/tests/serviceworker/chromium/resources/ping-worker.js
new file mode 100644
index 0000000000000000000000000000000000000000..7c82c4ed55d0330f1cdc8cb3fda264f6b69f5f38
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/chromium/resources/ping-worker.js
@@ -0,0 +1,4 @@
+var counter = 0;
+self.onmessage = function(event) {
+ event.data.port.postMessage(counter++);
+};

Powered by Google App Engine
This is Rietveld 408576698