OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="/js-test-resources/js-test.js"></script> |
| 3 <style> |
| 4 @font-face { |
| 5 font-family: ahem; |
| 6 src: url(http://localhost:8080/css/resources/cors-ahem.php); |
| 7 } |
| 8 </style> |
| 9 |
| 10 <div style="font-family: ahem;">This fetches ahem font.<div> |
| 11 |
| 12 <script> |
| 13 if (window.testRunner) |
| 14 testRunner.waitUntilDone(); |
| 15 |
| 16 var entry; |
| 17 if (location.hash == '#check') { |
| 18 document.fonts.ready().then(function() { |
| 19 entry = performance.getEntriesByName('http://localhost:8080/css/resource
s/cors-ahem.php')[0]; |
| 20 shouldBeTrue('entry.domainLookupStart > 0'); |
| 21 if (window.testRunner) |
| 22 testRunner.notifyDone(); |
| 23 }); |
| 24 } else { |
| 25 document.fonts.ready().then(function() { |
| 26 location.hash = 'check'; |
| 27 location.reload(); |
| 28 }); |
| 29 } |
| 30 </script> |
OLD | NEW |