tor-browser

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

fontfacesetloadevent-constructor.html (828B)


      1 <!DOCTYPE html>
      2 <title>FontFaceSetLoadEvent constructor</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-font-loading/#fontfacesetloadevent">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script>
      7  test(function() {
      8    var ff = [];
      9    var e = new FontFaceSetLoadEvent('type');
     10    assert_array_equals(e.fontfaces, ff);
     11    assert_not_equals(e.fontfaces, ff);
     12  }, 'FontFaceSetLoadEvent constructor without FontFaceSetLoadEventInit dictionary');
     13 
     14  test(function() {
     15    var ff = [ new FontFace('family', 'src') ];
     16    var e = new FontFaceSetLoadEvent('type', { fontfaces: ff });
     17    assert_array_equals(e.fontfaces, ff);
     18    assert_not_equals(e.fontfaces, ff);
     19  }, 'FontFaceSetLoadEvent constructor with FontFaceSetLoadEventInit dictionary');
     20 </script>