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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/installing.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>ServiceWorker: navigator.serviceWorker.installing</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 // "installing" is set
9 async_test(function(t) {
10 var step = t.step_func.bind(t);
11 var url = 'resources/empty-worker.js';
12 var scope = 'resources/blank.html';
13 var frame;
14
15 service_worker_unregister(t, scope)
16 .then(step(function() { return with_iframe(scope); }))
17 .then(step(function(f) {
18 frame = f;
19 return navigator.serviceWorker.register(url, {scope: scope});
20 }))
21 .then(step(function(registration) {
22 var container = frame.contentWindow.navigator.serviceWorker;
23 assert_equals(container.controller, null);
24 assert_equals(registration.active, null);
25 assert_equals(registration.waiting, null);
26 assert_equals(registration.installing.scriptURL, normalizeURL(url));
27
28 // FIXME: Add a test for a frame created after installation.
29 // Should the existing frame ("frame") block activation?
30 }))
31 .then(step(function() {
32 frame.remove();
33 return service_worker_unregister_and_done(t, scope);
34 }))
35 .catch(unreached_rejection(t));
36 }, 'installing is set');
37 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698