| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 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 <link id="target" async rel="import" href="resources/hello.html"> | 6 <link id="target" async rel="import" href="../../../resources/redirect.php?delay
=100&url=../htmlimports/resources/hello.html"> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <script> | 9 <script> |
| 10 (function() { | 10 (function() { |
| 11 var test = async_test('With the async attribute, link element don\'t block the s
cript execution.'); | 11 var test = async_test('With the async attribute, link element don\'t block the s
cript execution.'); |
| 12 | 12 |
| 13 test.step(function() { | 13 test.step(function() { |
| 14 assert_true(window.target.import === null, "Script goes without waiting the
link loaded"); | 14 assert_true(window.target.import === null, "Script goes without waiting the
link loaded"); |
| 15 }); | 15 }); |
| 16 | 16 |
| 17 window.target.onload = function() { | 17 window.target.onload = function() { |
| 18 test.step(function() { | 18 test.step(function() { |
| 19 assert_true(window.target.import instanceof HTMLDocument, "Ensureing tha
t the import being loaded eventually."); | 19 assert_true(window.target.import instanceof HTMLDocument, "Ensureing tha
t the import being loaded eventually."); |
| 20 test.done(); | 20 test.done(); |
| 21 }); | 21 }); |
| 22 }; | 22 }; |
| 23 })(); | 23 })(); |
| 24 </script> | 24 </script> |
| 25 </body> | 25 </body> |
| 26 </html> | 26 </html> |
| OLD | NEW |