OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="/js-test-resources/ahem.js"></script> |
2 <link rel="stylesheet" href="has-cached-resources.css"> | 3 <link rel="stylesheet" href="has-cached-resources.css"> |
3 <script src="/js-test-resources/js-test.js"></script> | 4 <script src="/js-test-resources/js-test.js"></script> |
4 <script src="url.js"></script> | 5 <script src="url.js"></script> |
5 <script> | 6 <script> |
6 if (window.testRunner) | 7 if (window.testRunner) |
7 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
8 | 9 |
9 function shouldHavePerformanceInfo(url) { | 10 function shouldHavePerformanceInfo(url) { |
10 shouldNotBe('window.performance.getEntriesByName("' + url + '")', "[]"); | 11 shouldNotBe('window.performance.getEntriesByName("' + url + '")', "[]"); |
11 } | 12 } |
(...skipping 15 matching lines...) Expand all Loading... |
27 if (window.testRunner) | 28 if (window.testRunner) |
28 testRunner.notifyDone(); | 29 testRunner.notifyDone(); |
29 }, 0); | 30 }, 0); |
30 } | 31 } |
31 </script> | 32 </script> |
32 <!-- FIXME: need to test the case: this html has not font-family: AcidAhemTest.
--> | 33 <!-- FIXME: need to test the case: this html has not font-family: AcidAhemTest.
--> |
33 <!-- In the case, window.performance.getEntriesByName should not return the font
's --> | 34 <!-- In the case, window.performance.getEntriesByName should not return the font
's --> |
34 <!-- performance timing info. --> | 35 <!-- performance timing info. --> |
35 <!-- Currently, because of CSSFontFaceSrcValue, always returns its info. --> | 36 <!-- Currently, because of CSSFontFaceSrcValue, always returns its info. --> |
36 <div style="font-family: AcidAhemTest">Acid Ahem Test Font</div> | 37 <div style="font-family: AcidAhemTest">Acid Ahem Test Font</div> |
OLD | NEW |