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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/register.html

Issue 2911073002: Upstream service wrkr "HTTP to HTTPS" tests to WPT (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/http-to-https-redirect-and-register.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <title>register</title> 2 <title>register</title>
3 <script src="test-helpers.js"></script>
4 <body> 3 <body>
5 <script> 4 <script>
5 'use strict';
6
6 navigator.serviceWorker.register('empty-worker.js', {scope: 'scope-register'}) 7 navigator.serviceWorker.register('empty-worker.js', {scope: 'scope-register'})
7 .then( 8 .then(
8 registration => { 9 registration => {
9 registration.unregister().then(() => { 10 registration.unregister().then(() => {
10 window.parent.postMessage('OK', '*'); 11 window.parent.postMessage('OK', '*');
11 }); 12 });
12 }, 13 },
13 error => { 14 error => {
14 window.parent.postMessage('FAIL: ' + error.name, '*'); 15 window.parent.postMessage('FAIL: ' + error.name, '*');
15 }) 16 })
16 .catch(error => { 17 .catch(error => {
17 window.parent.postMessage('ERROR: ' + error.name, '*'); 18 window.parent.postMessage('ERROR: ' + error.name, '*');
18 }); 19 });
19 </script> 20 </script>
20 </body> 21 </body>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/http-to-https-redirect-and-register.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698