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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/claim-worker.js

Issue 2869093002: Upstream Service Worker window test to WPT
Patch Set: Created 3 years, 7 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/http/tests/serviceworker/resources/claim-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/claim-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/claim-worker.js
deleted file mode 100644
index a0e1ac831ecbdd7c6d45e07fcf8e48f2f624d557..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/claim-worker.js
+++ /dev/null
@@ -1,14 +0,0 @@
-self.addEventListener('message', function(event) {
- event.waitUntil(self.clients.claim()
- .then(function(result) {
- if (result !== undefined) {
- event.data.port.postMessage(
- 'FAIL: claim() should be resolved with undefined');
- return;
- }
- event.data.port.postMessage('PASS');
- })
- .catch(function(error) {
- event.data.port.postMessage('FAIL: exception: ' + error.name);
- }));
- });

Powered by Google App Engine
This is Rietveld 408576698