empty-family-load.html (787B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="author" title="Dominik Röttsches" href="drott@chromium.org"> 4 <link rel="help" href="https://drafts.csswg.org/css-font-loading/#font-face-load"> 5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/4510"> 6 <meta name="assert" content="Ensure that an empty font family name loads and resolves to array." /> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script> 10 promise_test(function(t) { 11 var testFontFace = new FontFace('a', 'url(a)'); 12 document.fonts.add(testFontFace); 13 return document.fonts.load("1px \"\"").then(function(result) { 14 assert_true(Array.isArray(result), 15 "Resolved promise's value must be an array.") }); 16 }) 17 </script> 18 </html>