OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- This test is prefixed with `chromium.` because the equivalent version | |
3 available in Web Platform Tests is known to cause timeout errors in the | |
4 Chromium automated build system. They should be maintained only to preserve | |
5 test converage until the corresponding versions in Web Platform Tests can be | |
6 made to pass consistently. See | |
7 https://codereview.chromium.org/2805313003/ --> | |
Marijn Kruisselbrink
2017/04/27 17:05:23
Is there a bug you can link to instead of a code r
mike3
2017/04/27 18:27:19
I was linking to the code review thread because th
| |
2 <script src="../resources/testharness.js"></script> | 8 <script src="../resources/testharness.js"></script> |
3 <script src="../resources/testharnessreport.js"></script> | 9 <script src="../resources/testharnessreport.js"></script> |
4 <script src="resources/test-helpers.js"></script> | 10 <script src="resources/test-helpers.js"></script> |
5 <script> | 11 <script> |
6 promise_test(function(t) { | 12 promise_test(function(t) { |
7 var script = 'resources/fetch-event-async-respond-with-worker.js'; | 13 var script = 'resources/fetch-event-async-respond-with-worker.js'; |
8 var scope = 'resources/simple.html'; | 14 var scope = 'resources/simple.html'; |
9 | 15 |
10 return service_worker_unregister_and_register(t, script, scope) | 16 return service_worker_unregister_and_register(t, script, scope) |
11 .then(function(registration) { | 17 .then(function(registration) { |
(...skipping 12 matching lines...) Expand all Loading... | |
24 | 30 |
25 worker.postMessage({port: channel.port2}, [channel.port2]); | 31 worker.postMessage({port: channel.port2}, [channel.port2]); |
26 return saw_message; | 32 return saw_message; |
27 }) | 33 }) |
28 .then(function(message) { | 34 .then(function(message) { |
29 assert_equals(message, 'PASS'); | 35 assert_equals(message, 'PASS'); |
30 return service_worker_unregister_and_done(t, scope); | 36 return service_worker_unregister_and_done(t, scope); |
31 }) | 37 }) |
32 }, 'Calling respondWith asynchronously throws an exception'); | 38 }, 'Calling respondWith asynchronously throws an exception'); |
33 </script> | 39 </script> |
OLD | NEW |