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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/extendable-event-waituntil.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>ExtendableEvent: waitUntil</title> 2 <title>ExtendableEvent: waitUntil</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 <script> 6 <script>
7 function runTest(test, scope, onRegister) { 7 function runTest(test, scope, onRegister) {
8 var script = 'resources/extendable-event-waituntil.js?' + scope; 8 var script = 'resources/extendable-event-waituntil.js?' + scope;
9 service_worker_unregister_and_register(test, script, scope) 9 service_worker_unregister_and_register(test, script, scope)
10 .then(function(registration) { 10 .then(function(registration) {
11 onRegister(registration.installing); 11 onRegister(registration.installing);
12 }); 12 });
13 } 13 }
14 14
15 // Sends a SYN to the worker and asynchronously listens for an ACK; sets 15 // Sends a SYN to the worker and asynchronously listens for an ACK; sets
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 wait_for_state(t, worker, 'activated') 116 wait_for_state(t, worker, 'activated')
117 .then(function() { 117 .then(function() {
118 service_worker_unregister_and_done(t, scope); 118 service_worker_unregister_and_done(t, scope);
119 }) 119 })
120 .catch(unreached_rejection(t)); 120 .catch(unreached_rejection(t));
121 }; 121 };
122 runTest(t, scope, onRegister); 122 runTest(t, scope, onRegister);
123 }, 'Test activate event waitUntil rejected.'); 123 }, 'Test activate event waitUntil rejected.');
124 124
125 </script> 125 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698