OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../resources/js-test.js"></script> | 2 <script src='../../resources/testharness.js'></script> |
| 3 <script src='../../resources/testharnessreport.js'></script> |
3 <script> | 4 <script> |
4 description('Tests FontFaceSet#check() returns true for platform fonts'); | |
5 | 5 |
6 shouldBeTrue("document.fonts.check('10px Arial');"); | 6 test(() => { |
7 shouldBeFalse("document.fonts.check('10px Nonexistent');"); | 7 assert_true(document.fonts.check('10px Arial')); |
8 shouldBeTrue("document.fonts.check('10px sans-serif');"); | 8 assert_false(document.fonts.check('10px Nonexistent')); |
9 shouldBeTrue("document.fonts.check('10px Nonexistent, monospace');"); | 9 assert_true(document.fonts.check('10px sans-serif')); |
10 shouldBeFalse("document.fonts.check('10px Nonexistent1, Nonexistent2');"); | 10 assert_true(document.fonts.check('10px Nonexistent, monospace')); |
| 11 assert_false(document.fonts.check('10px Nonexistent1, Nonexistent2')); |
| 12 }, 'Tests FontFaceSet#check() returns true for platform fonts'); |
| 13 |
11 </script> | 14 </script> |
OLD | NEW |