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

Unified Diff: LayoutTests/fast/css/fontfaceset-check-platform-fonts.html

Issue 324293003: Change FontFaceSet#check() behavior when no matched font-face (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/fontfaceset-check-platform-fonts.html
diff --git a/LayoutTests/fast/css/fontfaceset-check-platform-fonts.html b/LayoutTests/fast/css/fontfaceset-check-platform-fonts.html
new file mode 100644
index 0000000000000000000000000000000000000000..3fd6289a743489ff987caa39501f066c286c0e0e
--- /dev/null
+++ b/LayoutTests/fast/css/fontfaceset-check-platform-fonts.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<script>
+description('Tests FontFaceSet#check() returns true for platform fonts');
+
+shouldBeTrue("document.fonts.check('10px Arial');");
+shouldBeFalse("document.fonts.check('10px Nonexistent');");
+shouldBeTrue("document.fonts.check('10px sans-serif');");
+shouldBeTrue("document.fonts.check('10px Nonexistent, monospace');");
+shouldBeFalse("document.fonts.check('10px Nonexistent1, Nonexistent2');");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/fontfaceset-check-platform-fonts-expected.txt » ('j') | Source/core/css/FontFaceSet.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698