OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <link rel="author" title="Josh Matthews" href="mailto:josh@joshmatthews.net"> |
| 3 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-link-element"
> |
| 4 <script src="../../../../../../resources/testharness.js"></script> |
| 5 <script src="../../../../../../resources/testharnessreport.js"></script> |
| 6 <link href="style.css?pipe=trickle(d3)" rel="stylesheet" id="style_test"></link> |
| 7 <script> |
| 8 var saw_link_onload = false; |
| 9 var t = async_test("Check if the stylesheet's load event blocks the document loa
d event"); |
| 10 document.getElementById('style_test').onload = t.step_func(function() { |
| 11 saw_link_onload = true; |
| 12 }); |
| 13 window.addEventListener('load', function() { |
| 14 t.step_func(function() { |
| 15 assert_true(saw_link_onload); |
| 16 }); |
| 17 t.done(); |
| 18 }, false); |
| 19 </script> |
| 20 </head> |
| 21 </html> |
OLD | NEW |