https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 61d6fc4fc7e54a79e11b0fa2eab98cf7504e7cd0 authored by Anne van Kesteren on 03 April 2018, 13:43:56 UTC
fix earlier test; add two more per feedback
Tip revision: 61d6fc4
link-header-on-subresource.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 on subresources preload resources');
</script>
<link rel=stylesheet href="resources/dummy-preloads-subresource.css?link-header-on-subresource">
<script src="resources/dummy.js?pipe=trickle(d5)&link-header-on-subresources"></script>
<script>
    window.addEventListener("load", t.step_func(function() {
        verifyPreloadAndRTSupport();
        verifyNumberOfDownloads("/fonts/CanvasTest.ttf?link-header-on-subresource", 1);
        t.done();
    }));
</script>

back to top