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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/update-claim-worker.php

Issue 2763123002: Upstream service worker `claim` tests to WPT (Closed)
Patch Set: Persist Chromium-specific version of test Created 3 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 header("Cache-Control: no-cache, must-revalidate");
3 header("Pragma: no-cache");
4 header('Content-Type:application/javascript');
5
6 echo '// ', microtime();
7 ?>
8
9 // This no-op fetch handler is necessary to bypass explicitly the no fetch
10 // handler optimization by which this service worker script can be skipped.
11 addEventListener('fetch', event => {
12 return;
13 });
14
15 addEventListener('install', event => {
16 event.waitUntil(self.skipWaiting());
17 });
18
19 addEventListener('activate', event => {
20 event.waitUntil(self.clients.claim());
21 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698