| Index: third_party/WebKit/LayoutTests/fast/css/fontfaceset-ready.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/fontfaceset-ready.html b/third_party/WebKit/LayoutTests/fast/css/fontfaceset-ready.html
|
| index c55b7f3c4e7776f40143a4f02d16a9d7e9286889..479f6778fa62968ad1054d641b58a5572e875fb7 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/css/fontfaceset-ready.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/fontfaceset-ready.html
|
| @@ -2,6 +2,7 @@
|
| <title>FontFaceSet.ready attribute</title>
|
| <script src="../../resources/testharness.js"></script>
|
| <script src="../../resources/testharnessreport.js"></script>
|
| +<div style="font-family: ahem">A</div>
|
| <script>
|
|
|
| promise_test(function(t) {
|
| @@ -36,4 +37,16 @@ promise_test(function(t) {
|
| });
|
| }, 'FontFaceSet.ready attribute');
|
|
|
| +promise_test(function(t) {
|
| + var face = new FontFace('ahem', 'url(../../resources/Ahem.ttf)');
|
| +
|
| + return document.fonts.ready
|
| + .then(function(fonts) {
|
| + document.fonts.add(face);
|
| + return document.fonts.ready;
|
| + }).then(function(fonts) {
|
| + assert_equals(face.status, 'loaded');
|
| + });
|
| +}, 'FontFaceSet.ready should be resolved after layout operations which may cause font loads.');
|
| +
|
| </script>
|
|
|