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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/activation-after-registration.html

Issue 2695803007: service worker: Remove some LayoutTests that are redundant with WPT tests. (Closed)
Patch Set: changes Created 3 years, 10 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
(Empty)
1 <!DOCTYPE html>
2 <title>Service Worker: Activation occurs after registration</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script src="resources/test-helpers.js"></script>
6 <body>
7 <script>
8 var t = async_test('activation occurs after registration');
9 t.step(function() {
10 var scope = 'resources/blank.html';
11 var registration;
12
13 service_worker_unregister_and_register(
14 t, 'resources/empty-worker.js', scope)
15 .then(function(r) {
16 registration = r;
17 assert_equals(
18 r.installing.state,
19 'installing',
20 'worker should be in the "installing" state upon registration');
21 return wait_for_state(t, r.installing, 'activated');
22 })
23 .then(function() {
24 service_worker_unregister_and_done(t, scope);
25 })
26 .catch(unreached_rejection(t));
27 });
28 </script>
29 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698