OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Service Worker: FetchEvent for HTMLImports</title> | 2 <title>Service Worker: FetchEvent for HTMLImports</title> |
3 <script src="../resources/testharness.js"></script> | 3 <script src="../resources/testharness.js"></script> |
4 <script src="../resources/testharnessreport.js"></script> | 4 <script src="../resources/testharnessreport.js"></script> |
5 <script src="resources/test-helpers.js?pipe=sub"></script> | 5 <script src="resources/test-helpers.js?pipe=sub"></script> |
6 <script> | 6 <script> |
7 async_test(function(t) { | 7 async_test(function(t) { |
8 var SCOPE = 'resources/fetch-request-html-imports-iframe.html'; | 8 var SCOPE = 'resources/fetch-request-html-imports-iframe.html'; |
9 var SCRIPT = 'resources/fetch-request-html-imports-worker.js'; | 9 var SCRIPT = 'resources/fetch-request-html-imports-worker.js'; |
10 var host_info = get_host_info(); | 10 var host_info = get_host_info(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 other_same.body.innerText, | 46 other_same.body.innerText, |
47 'mode=cors credentials=include', | 47 'mode=cors credentials=include', |
48 'The request mode and credentials for same origin HTMLImport ' + | 48 'The request mode and credentials for same origin HTMLImport ' + |
49 'from other origin HTMLImports must be set correctly.'); | 49 'from other origin HTMLImports must be set correctly.'); |
50 assert_equals( | 50 assert_equals( |
51 other_other.body.innerText, | 51 other_other.body.innerText, |
52 'mode=cors credentials=omit', | 52 'mode=cors credentials=omit', |
53 'The request mode and credentials for other origin HTMLImport ' + | 53 'The request mode and credentials for other origin HTMLImport ' + |
54 'from other origin HTMLImport must be set correctly.'); | 54 'from other origin HTMLImport must be set correctly.'); |
55 | 55 |
56 unload_iframe(frame); | |
57 service_worker_unregister_and_done(t, SCOPE); | 56 service_worker_unregister_and_done(t, SCOPE); |
58 }) | 57 }) |
59 .catch(unreached_rejection(t)); | 58 .catch(unreached_rejection(t)); |
60 }, 'Verify the FetchEvent for HTMLImports'); | 59 }, 'Verify the FetchEvent for HTMLImports'); |
61 </script> | 60 </script> |
OLD | NEW |