https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 683909fd3b1468f0c17a0c407e6f4e72a325d96b authored by Rebecca Hauck on 26 July 2014, 00:05:43 UTC
image file for tests
Tip revision: 683909f
link-header-preload.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 src="resources/dummy.js?pipe=trickle(d5)&link-header-preload"></script>
<script>
    window.addEventListener("load", t.step_func(function() {
        verifyPreloadAndRTSupport();
        verifyNumberOfDownloads("resources/square.png?link-header-preload", 1);
        verifyNumberOfDownloads("resources/dummy.js?link-header-preload", 1);
        verifyNumberOfDownloads("resources/dummy.css?link-header-preload", 1);
        t.done();
    }));
</script>
</body>
back to top