| 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..7951903b3cdd011a2cfd88a53bb8c4ed92de733f
|
| --- /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>
|
| +if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| +
|
| +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 {
|
| + document.fonts.ready().then(function() {
|
| + location.hash = 'check';
|
| + location.reload();
|
| + });
|
| +}
|
| +</script>
|
|
|