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