Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/fontfaceset-check-platform-fonts.html

Issue 2629543004: Convert some fontfaceset tests to use jsharness (Closed)
Patch Set: Fix minor formatting issue Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698