mirror of
https://github.com/servo/servo.git
synced 2025-07-12 01:43:43 +01:00
20 lines
782 B
HTML
20 lines
782 B
HTML
<!DOCTYPE html>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/preload/resources/preload_helper.js"></script>
|
|
<script>
|
|
var t = async_test('Makes sure that Link headers preload resources');
|
|
</script>
|
|
<body>
|
|
<script>
|
|
window.addEventListener("load", t.step_func(function() {
|
|
t.step_timeout(function() {
|
|
verifyPreloadAndRTSupport();
|
|
verifyNumberOfResourceTimingEntries("resources/square.png?link-header-preload", 1);
|
|
verifyNumberOfResourceTimingEntries("resources/dummy.js?link-header-preload", 1);
|
|
verifyNumberOfResourceTimingEntries("resources/dummy.css?link-header-preload", 1);
|
|
t.done();
|
|
}, 5000);
|
|
}));
|
|
</script>
|
|
</body>
|