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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/postmessage-to-client-worker.js

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 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/imported/wpt/service-workers/service-worker/resources/postmessage-to-client-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-to-client-worker.js b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/postmessage-to-client-worker.js
similarity index 79%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-to-client-worker.js
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/postmessage-to-client-worker.js
index 17913063583a8276675adcc65a66e843d83a303f..290a4a9b3e9d9263645b4154eae151e2b06b3eae 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/postmessage-to-client-worker.js
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/postmessage-to-client-worker.js
@@ -1,10 +1,10 @@
self.onmessage = function(e) {
- e.waitUntil(self.clients.matchAll().then(function(clients) {
+ self.clients.matchAll().then(function(clients) {
clients.forEach(function(client) {
client.postMessage('Sending message via clients');
if (!Array.isArray(clients))
client.postMessage('clients is not an array');
client.postMessage('quit');
});
- }));
+ });
};

Powered by Google App Engine
This is Rietveld 408576698