| 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>
|
|
|