| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Service Worker: CSS's base URL must be the request URL even when fetched
from other URL</title> | 2 <title>Service Worker: CSS's base URL must be the request URL even when fetched
from other URL</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/get-host-info.sub.js"></script> | 5 <script src="/common/get-host-info.sub.js"></script> |
| 6 <script src="resources/test-helpers.sub.js?pipe=sub"></script> | 6 <script src="resources/test-helpers.sub.js?pipe=sub"></script> |
| 7 <script> | 7 <script> |
| 8 async_test(function(t) { | 8 async_test(function(t) { |
| 9 var SCOPE = 'resources/fetch-request-css-base-url-iframe.html'; | 9 var SCOPE = 'resources/fetch-request-css-base-url-iframe.html'; |
| 10 var SCRIPT = 'resources/fetch-request-css-base-url-worker.js'; | 10 var SCRIPT = 'resources/fetch-request-css-base-url-worker.js'; |
| 11 var worker; | 11 var worker; |
| 12 var testDonePromise; | 12 var testDonePromise; |
| 13 | 13 |
| 14 return service_worker_unregister_and_register(t, SCRIPT, SCOPE) | 14 return service_worker_unregister_and_register(t, SCRIPT, SCOPE) |
| 15 .then(function(registration) { | 15 .then(function(registration) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 .then(function() { return with_iframe(SCOPE); }) | 47 .then(function() { return with_iframe(SCOPE); }) |
| 48 .then(function(f) { | 48 .then(function(f) { |
| 49 return testDonePromise.then(function() { | 49 return testDonePromise.then(function() { |
| 50 f.remove(); | 50 f.remove(); |
| 51 return service_worker_unregister_and_done(t, SCOPE); | 51 return service_worker_unregister_and_done(t, SCOPE); |
| 52 }); | 52 }); |
| 53 }) | 53 }) |
| 54 .catch(unreached_rejection(t)); | 54 .catch(unreached_rejection(t)); |
| 55 }, 'CSS\'s base URL must be the request URL even when fetched from other URL.'
); | 55 }, 'CSS\'s base URL must be the request URL even when fetched from other URL.'
); |
| 56 </script> | 56 </script> |
| OLD | NEW |