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

Unified Diff: LayoutTests/fast/css/font-face-unicode-range-load.html

Issue 162883002: Primary FontData of FontFallbackList should have space character (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/font-face-unicode-range-load.html
diff --git a/LayoutTests/fast/css/font-face-unicode-range-load.html b/LayoutTests/fast/css/font-face-unicode-range-load.html
index a1c8561c5801a63206931af0a6ea259afac03b9a..8306ec1d4b6079f5632b75356d646ded2f43bfad 100644
--- a/LayoutTests/fast/css/font-face-unicode-range-load.html
+++ b/LayoutTests/fast/css/font-face-unicode-range-load.html
@@ -9,6 +9,7 @@ window.jsTestIsAsync = true;
var latin1Loaded = false;
var cyrillicLoaded = false;
var arabicLoaded = false;
+var iconLoaded = false;
function runTests() {
document.fonts.addEventListener('loadingdone', onloadingdone);
@@ -23,11 +24,14 @@ function onloadingdone(e) {
cyrillicLoaded = true;
if (range == 'U+600-6FF')
arabicLoaded = true;
+ if (range == 'U+E000')
+ iconLoaded = true;
}
shouldBeTrue('latin1Loaded'); // Latin-1 font is loaded for basic font metrics.
shouldBeTrue('cyrillicLoaded');
shouldBeFalse('arabicLoaded');
+ shouldBeFalse('iconLoaded');
finishJSTest();
}
@@ -57,9 +61,19 @@ else {
#test {
font-family: TestFont;
}
+
+@font-face {
+ font-family: SingleCharacterOverride;
+ src: url('../../resources/Ahem.woff');
+ unicode-range: U+E000;
+}
+#test2 {
+ font-family: SingleCharacterOverride;
+}
</style>
</head>
<body>
<p id="test">&#x41F;&#x440;&#x43E;&#x432;&#x435;&#x440;&#x43A;&#x430;</p>
+ <p id="test2">hello</p>
</body>
</html>
« no previous file with comments | « LayoutTests/fast/css/font-face-character-fallback.html ('k') | LayoutTests/fast/css/font-face-unicode-range-load-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698