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

Side by Side Diff: LayoutTests/http/tests/serviceworker/resources/postmessage-to-client-worker.js

Issue 435453002: [ServiceWorker] Update formatting for tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 self.onmessage = function(e) { 1 self.onmessage = function(e) {
2 self.clients.getAll().then(function(clients) { 2 self.clients.getAll().then(function(clients) {
3 clients.forEach(function(client) { 3 clients.forEach(function(client) {
4 client.postMessage('Sending message via clients'); 4 client.postMessage('Sending message via clients');
5 if (!Array.isArray(clients)) 5 if (!Array.isArray(clients))
6 client.postMessage('clients is not an array'); 6 client.postMessage('clients is not an array');
7 client.postMessage('quit'); 7 client.postMessage('quit');
8 }); 8 });
9 }); 9 });
10 }; 10 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698