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.href = 'resources/import-slow-child.cgi'; |
| 14 document.head.appendChild(link); |
| 15 })(); |
| 16 </script> |
| 17 <link id="followingLink" rel="import" href="resources/hello.html"> |
| 18 <script> |
| 19 test(function() { |
| 20 assert_true(null != dynamicLink.import, 'Dynamic import'); |
| 21 assert_true(null != followingLink.import, 'Following import'); |
| 22 }, 'Dynamically added import blocks following import.'); |
| 23 </script> |
| 24 </body> |
| 25 </html> |
OLD | NEW |