https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 51bd1468f59c188c8a0cb143d8200cb101a0ea67 authored by Xidorn Quan on 07 April 2018, 06:37:41 UTC
Add test for checking property order after setting property on CSSStyleDeclaration
Tip revision: 51bd146
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