OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Service Worker: Fetch for the frame loading.</title> | 2 <title>Service Worker: Fetch for the frame loading.</title> |
3 <meta name=timeout content=long> | 3 <meta name=timeout content=long> |
4 <script src="/resources/testharness.js"></script> | 4 <script src="/resources/testharness.js"></script> |
5 <script src="/resources/testharnessreport.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
6 <script src="resources/get-host-info.sub.js"></script> | 6 <script src="/common/get-host-info.sub.js"></script> |
7 <script src="resources/test-helpers.sub.js"></script> | 7 <script src="resources/test-helpers.sub.js"></script> |
8 <body> | 8 <body> |
9 <script> | 9 <script> |
10 var worker = 'resources/fetch-rewrite-worker.js'; | 10 var worker = 'resources/fetch-rewrite-worker.js'; |
11 var path = base_path() + 'resources/fetch-access-control.py'; | 11 var path = base_path() + 'resources/fetch-access-control.py'; |
12 var host_info = get_host_info(); | 12 var host_info = get_host_info(); |
13 | 13 |
14 if (window.testRunner) { | 14 if (window.testRunner) { |
15 testRunner.setCanOpenWindows(); | 15 testRunner.setCanOpenWindows(); |
16 } | 16 } |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 assert_equals( | 214 assert_equals( |
215 result, | 215 result, |
216 null, | 216 null, |
217 'Opaque type response could not be loaded in the new window.'); | 217 'Opaque type response could not be loaded in the new window.'); |
218 return service_worker_unregister_and_done(t, scope); | 218 return service_worker_unregister_and_done(t, scope); |
219 }) | 219 }) |
220 .catch(unreached_rejection(t)); | 220 .catch(unreached_rejection(t)); |
221 }, 'Opaque type response could not be loaded in the new window.'); | 221 }, 'Opaque type response could not be loaded in the new window.'); |
222 </script> | 222 </script> |
223 </body> | 223 </body> |
OLD | NEW |