Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / resource-timing-for-unloaded-font.html
blob1e63a5c0710848347f0ef7638098820195c9632b
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 @font-face {
5 font-family: foo;
6 src: url(file:///no-such-font.ttf);
8 </style>
10 <script>
11 description('Unloaded web fonts should not report Resource Timing');
13 window.jsTestIsAsync = true;
15 function getDocumentFontFaces() {
16 var faces = [];
17 document.fonts.forEach(function(face) { faces.push(face); });
18 return faces;
21 function verify() {
22 shouldBeEqualToString('getDocumentFontFaces()[0].status', 'unloaded');
23 entries = performance.getEntriesByName('file:///no-such-font.ttf');
24 shouldBe('entries.length', '0');
25 finishJSTest();
28 if (location.hash == '#check') {
29 setTimeout(verify, 10);
30 } else {
31 location.hash = 'check';
32 location.reload();
34 </script>