| <script src="../../resources/js-test-pre.js"></script> |
| window.jsTestIsAsync = true; |
| description("This test makes sure that preinstalled fonts are never returned from the CSS Font Loading API."); |
| var fontFaceSet = new FontFaceSet([]); |
| var fontFace = new FontFace("Helvetica", "url('../../resources/Ahem.ttf')", {unicodeRange: "U+10FFFF"}); |
| fontFaceSet.add(fontFace); |
| fontFaceSet.load("16px Helvetica", "test").then(function(r) { |
| shouldBe("result.length", "0"); |
| fontFaceSet = document.fonts; |
| fontFaceSet.add(fontFace); |
| return fontFaceSet.load("16px Helvetica", "test") |
| shouldBe("result.length", "0"); |
| testFailed("Load should be successful."); |
| <script src="../../resources/js-test-post.js"></script> |