OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../../resources/testharness.js"></script> |
| 5 <script src="../../../resources/testharnessreport.js"></script> |
| 6 </head> |
| 7 <body> |
| 8 <script> |
| 9 (function() { |
| 10 var link = document.createElement('link'); |
| 11 link.id = 'dynamicLink' |
| 12 link.rel = 'import'; |
| 13 link.setAttribute('async', ''); |
| 14 link.href = 'resources/import-slow-child.cgi'; |
| 15 document.head.appendChild(link); |
| 16 })(); |
| 17 </script> |
| 18 <link id="followingLink" rel="import" href="resources/hello.html"> |
| 19 <script> |
| 20 test(function() { |
| 21 assert_true(null == dynamicLink.import, 'Dynamic import'); |
| 22 assert_true(null != followingLink.import, 'Following import'); |
| 23 }, 'Dynamically added async import doesn\'t block following import.'); |
| 24 </script> |
| 25 </body> |
| 26 </html> |
OLD | NEW |