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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/ServiceWorkerGlobalScope/update.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>ServiceWorkerGlobalScope: update</title> 2 <title>ServiceWorkerGlobalScope: update</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 7
8 promise_test(function(t) { 8 promise_test(function(t) {
9 var script = 'resources/update-worker.php'; 9 var script = 'resources/update-worker.py';
10 var scope = 'resources/scope/update'; 10 var scope = 'resources/scope/update';
11 var registration; 11 var registration;
12 var frame1; 12 var frame1;
13 13
14 return service_worker_unregister_and_register(t, script, scope) 14 return service_worker_unregister_and_register(t, script, scope)
15 .then(function(r) { 15 .then(function(r) {
16 registration = r; 16 registration = r;
17 return wait_for_state(t, registration.installing, 'activated'); 17 return wait_for_state(t, registration.installing, 'activated');
18 }) 18 })
19 .then(function() { return with_iframe(scope); }) 19 .then(function() { return with_iframe(scope); })
(...skipping 16 matching lines...) Expand all
36 frame2.contentDocument.body.textContent, 36 frame2.contentDocument.body.textContent,
37 expected_events_seen.toString(), 37 expected_events_seen.toString(),
38 'events seen by the worker'); 38 'events seen by the worker');
39 frame1.remove(); 39 frame1.remove();
40 frame2.remove(); 40 frame2.remove();
41 return service_worker_unregister_and_done(t, scope); 41 return service_worker_unregister_and_done(t, scope);
42 }); 42 });
43 }, 'Update a registration on ServiceWorkerGlobalScope'); 43 }, 'Update a registration on ServiceWorkerGlobalScope');
44 44
45 </script> 45 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698