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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/installing.https.html

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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>ServiceWorker: navigator.serviceWorker.installing</title> 2 <title>ServiceWorker: navigator.serviceWorker.installing</title>
3 <script src="../resources/testharness.js"></script> 3 <script src="/resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="/resources/testharnessreport.js"></script>
5 <script src="resources/test-helpers.js"></script> 5 <script src="resources/test-helpers.sub.js"></script>
6 <body> 6 <body>
7 <script> 7 <script>
8 // "installing" is set 8 // "installing" is set
9 async_test(function(t) { 9 async_test(function(t) {
10 var step = t.step_func.bind(t); 10 var step = t.step_func.bind(t);
11 var url = 'resources/empty-worker.js'; 11 var url = 'resources/empty-worker.js';
12 var scope = 'resources/blank.html'; 12 var scope = 'resources/blank.html';
13 var frame; 13 var frame;
14 14
15 service_worker_unregister(t, scope) 15 service_worker_unregister(t, scope)
(...skipping 12 matching lines...) Expand all
28 // FIXME: Add a test for a frame created after installation. 28 // FIXME: Add a test for a frame created after installation.
29 // Should the existing frame ("frame") block activation? 29 // Should the existing frame ("frame") block activation?
30 })) 30 }))
31 .then(step(function() { 31 .then(step(function() {
32 frame.remove(); 32 frame.remove();
33 return service_worker_unregister_and_done(t, scope); 33 return service_worker_unregister_and_done(t, scope);
34 })) 34 }))
35 .catch(unreached_rejection(t)); 35 .catch(unreached_rejection(t));
36 }, 'installing is set'); 36 }, 'installing is set');
37 </script> 37 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698