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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/test.html

Issue 1643823003: bug? Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: WindowClient.navigate() tests</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script src="../resources/get-host-info.js"></script>
6 <script src="resources/test-helpers.js"></script>
7 <body>
8 <script>
9
10 promise_test(function(test) {
11 var scope = 'resources/blank.html';
12 var script_url = 'resources/test.js';
13 var service_worker;
14 return service_worker_unregister_and_register(
15 test, script_url, scope)
16 .then(function(registration) {
17 service_worker = registration.installing;
18 return wait_for_state(test, service_worker, 'installed');
19 })
20 .then(function(state) {
21 console.log(state);
22 return with_iframe(scope);
nhiroki 2016/02/08 04:54:02 This promise is never settled (or settled when the
23 })
24 .then(function(frame) {
25 console.log(frame);
26 service_worker.postMessage('send_message');
27 });
28 });
29
30 </script>
31 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698