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

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

Issue 1312723002: Service workers: Add test for HTTP to HTTPS redirect (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: wait for unregister Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « 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
(Empty)
1 <!doctype html>
2 <title>register</title>
3 <script src="test-helpers.js"></script>
4 <body>
5 <script>
6 navigator.serviceWorker.register('empty-worker.js', {scope: 'scope-register'})
7 .then(
8 registration => {
9 registration.unregister().then(() => {
10 window.parent.postMessage('OK', '*');
11 });
12 },
13 error => {
14 window.parent.postMessage('FAIL: ' + error.name, '*');
15 })
16 .catch(error => {
17 window.parent.postMessage('ERROR: ' + error.name, '*');
18 });
19 </script>
20 </body>
OLDNEW
« no previous file with comments | « 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