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

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: 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..27c98aa138b0c96c96ad6302e4592cdbffe10c20
--- /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);
dominicc (has gone to gerrit) 2014/11/17 02:25:26 JavaScript != C++, use postfix increment.
Marijn Kruisselbrink 2014/11/17 23:18:44 Done.
+};

Powered by Google App Engine
This is Rietveld 408576698