OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <meta charset="utf-8"> | |
3 <title>Navigation Preload with chunked encoding</title> | |
4 <script src="../../resources/testharness.js"></script> | |
5 <script src="../../resources/testharnessreport.js"></script> | |
6 <script src="../resources/test-helpers.js"></script> | |
7 <script> | |
8 promise_test(t => { | |
9 var script = 'resources/broken-chunked-encoding-worker.js'; | |
10 var scope = 'resources/broken-chunked-encoding-scope.php'; | |
11 return service_worker_unregister_and_register(t, script, scope) | |
12 .then(reg => { | |
13 registration = reg; | |
falken
2017/01/18 14:24:59
add_completion_callback to unregister
horo
2017/01/18 16:14:57
Done.
| |
14 worker = registration.installing; | |
15 return wait_for_state(t, worker, 'activated'); | |
16 }) | |
17 .then(_ => with_iframe(scope)) | |
18 .then(frame => { | |
19 assert_equals( | |
20 frame.contentDocument.body.textContent, | |
21 'Done'); | |
22 }); | |
23 }, 'Navigation Preload with broken chunked encoding doesn\'t crash.'); | |
24 | |
25 </script> | |
OLD | NEW |