Chromium Code Reviews| Index: LayoutTests/http/tests/css/resource-timing-details-for-revalidation.html |
| diff --git a/LayoutTests/http/tests/css/resource-timing-details-for-revalidation.html b/LayoutTests/http/tests/css/resource-timing-details-for-revalidation.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2415138c7d1e25b2a5ebe203ea695cb394946b99 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/css/resource-timing-details-for-revalidation.html |
| @@ -0,0 +1,30 @@ |
| +<!DOCTYPE html> |
| +<script src="/js-test-resources/js-test.js"></script> |
| +<style> |
| +@font-face { |
| + font-family: ahem; |
| + src: url(http://localhost:8080/css/resources/cors-ahem.php); |
| +} |
| +</style> |
| + |
| +<div style="font-family: ahem;">This fetches ahem font.<div> |
| + |
| +<script> |
| +var entry; |
| +if (location.hash == '#check') { |
| + document.fonts.ready().then(function() { |
| + entry = performance.getEntriesByName('http://localhost:8080/css/resources/cors-ahem.php')[0]; |
| + shouldBeTrue('entry.domainLookupStart > 0'); |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| + }); |
| +} else { |
| + if (window.testRunner) |
| + testRunner.waitUntilDone(); |
|
Nate Chapin
2014/05/10 02:16:40
I'd put this at the top of the <script> tag, it's
bashi
2014/05/10 02:41:07
Done.
|
| + |
| + document.fonts.ready().then(function() { |
| + location.hash = 'check'; |
| + location.reload(); |
| + }); |
| +} |
| +</script> |