tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

style_load_async.html (514B)


      1 <!doctype html>
      2 <html>
      3 <meta charset="utf-8">
      4 <title>Style load event should be async</title>
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <script>
      8    var t = async_test("style load should be async");
      9    var sync = true;
     10    function check() {
     11        assert_false(sync);
     12        t.done();
     13    }
     14 </script>
     15 <style onload="t.step(check)">
     16 </style>
     17 <script>
     18  sync = false
     19 </script>
     20 
     21 <body>
     22  <div id="log"></div>
     23  <div id="test"></div>
     24 </body>
     25 </html>