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

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

Issue 248473005: Make CSSFontFace::willUseFontData() load fonts with unicode-range (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/font-face-unicode-range-overlap-load-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/font-face-unicode-range-overlap-load.html
diff --git a/LayoutTests/fast/css/font-face-unicode-range-overlap-load.html b/LayoutTests/fast/css/font-face-unicode-range-overlap-load.html
index 322137be381e18618f32d50cb49f67b1af8ac40a..372971b59d48cc8c497a0bb4f9d118ecaffe047c 100644
--- a/LayoutTests/fast/css/font-face-unicode-range-overlap-load.html
+++ b/LayoutTests/fast/css/font-face-unicode-range-overlap-load.html
@@ -22,6 +22,16 @@
src: url('../../resources/Ahem.woff2');
unicode-range: U+49; /* 'I' */
}
+@font-face {
+ font-family: Test3;
+ src: url('../../resources/Ahem.ttf');
+ /* no unicode-range */
+}
+@font-face {
+ font-family: Test3;
+ src: url('../../resources/Ahem.otf');
+ unicode-range: U+00-FF;
+}
</style>
<script>
description('Tests that only necessary fonts are loaded when font faces have overlapping unicode ranges.');
@@ -36,11 +46,13 @@ function getDocumentFontFaces() {
document.fonts.ready().then(function() {
faces = getDocumentFontFaces();
- shouldBe('faces.length', '4');
+ shouldBe('faces.length', '6');
shouldBeEqualToString('faces[0].status', 'unloaded');
shouldBeEqualToString('faces[1].status', 'loaded');
shouldBeEqualToString('faces[2].status', 'loaded');
shouldBeEqualToString('faces[3].status', 'unloaded');
+ shouldBeEqualToString('faces[4].status', 'unloaded');
+ shouldBeEqualToString('faces[5].status', 'loaded');
finishJSTest();
});
</script>
@@ -48,5 +60,6 @@ document.fonts.ready().then(function() {
<body>
<p style="font-family: Test1">I</p>
<p style="font-family: Test2">J</p>
+ <p style="font-family: Test3">K</p>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/css/font-face-unicode-range-overlap-load-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698