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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/postmessage-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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/serviceworker/resources/postmessage-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/postmessage-worker.js b/LayoutTests/http/tests/serviceworker/resources/postmessage-worker.js
index 83cda3b7e23573408c5c106846d779b05c2ddad8..858cf04267c24cf888dbfe8f52d18162f0c2f48e 100644
--- a/LayoutTests/http/tests/serviceworker/resources/postmessage-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/postmessage-worker.js
@@ -2,18 +2,18 @@ var port;
// Exercise the 'onmessage' handler:
self.onmessage = function(e) {
- var message = e.data;
- if ('port' in message) {
- port = message.port;
- }
+ var message = e.data;
+ if ('port' in message) {
+ port = message.port;
+ }
};
// And an event listener:
self.addEventListener('message', function(e) {
var message = e.data;
if ('value' in message) {
- port.postMessage('Acking value: ' + message.value);
+ port.postMessage('Acking value: ' + message.value);
} else if ('done' in message) {
- port.postMessage('quit');
+ port.postMessage('quit');
}
-});
+ });

Powered by Google App Engine
This is Rietveld 408576698