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>
8 var t
= async_test('activation occurs after registration');
10 var scope
= 'resources/blank.html';
13 service_worker_unregister_and_register(
14 t
, 'resources/empty-worker.js', scope
)
20 'worker should be in the "installing" state upon registration');
21 return wait_for_state(t
, r
.installing
, 'activated');
24 service_worker_unregister_and_done(t
, scope
);
26 .catch(unreached_rejection(t
));