Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <title>FontFaceSetLoadEvent Constructor</title> | |
| 3 <script src="../../resources/testharness.js"></script> | |
| 4 <script src="../../resources/testharnessreport.js"></script> | |
| 5 <script> | |
| 6 test(function() { | |
| 7 var e = new FontFaceSetLoadEvent('type'); | |
| 8 assert_array_equals(e.fontfaces, []); | |
| 9 assert_equals(e.fontfaces, e.fontfaces); | |
| 10 assert_not_equals(e.fontfaces, []); | |
|
foolip
2016/12/16 14:46:36
This assert looks a bit paranoid, it would be a th
lunalu1
2016/12/16 15:44:56
Done.
| |
| 11 }, 'Test FontFaceSetLoadEvent constructor without FontFaceSetLoadEventInit dic tionary'); | |
| 12 | |
| 13 test(function() { | |
| 14 var ff = [ new FontFace('family', 'src') ]; | |
| 15 var e = new FontFaceSetLoadEvent('type', { fontfaces: ff }); | |
| 16 assert_array_equals(e.fontfaces, ff); | |
| 17 assert_equals(e.fontfaces, e.fontfaces); | |
| 18 assert_not_equals(e.fontfaces, ff); | |
| 19 }, 'Test FontFaceSetLoadEvent constructor with FontFaceSetLoadEventInit dictio nary'); | |
| 20 </script> | |
| OLD | NEW |