| OLD | NEW |
| (Empty) | |
| 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); |
| 7 } |
| 8 </style> |
| 9 |
| 10 <script> |
| 11 description('Unloaded web fonts should not report Resource Timing'); |
| 12 |
| 13 window.jsTestIsAsync = true; |
| 14 |
| 15 function getDocumentFontFaces() { |
| 16 var faces = []; |
| 17 document.fonts.forEach(function(face) { faces.push(face); }); |
| 18 return faces; |
| 19 } |
| 20 |
| 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(); |
| 26 } |
| 27 |
| 28 if (location.hash == '#check') { |
| 29 setTimeout(verify, 10); |
| 30 } else { |
| 31 location.hash = 'check'; |
| 32 location.reload(); |
| 33 } |
| 34 </script> |
| OLD | NEW |