https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d0802e5f893fea69f18a272e88ed8d0ce13166ce authored by Philip Jägenstedt on 20 December 2018, 16:48:28 UTC
Revamp how idlharness.js handles iterable declarations
Tip revision: d0802e5
link-header-preload-nonce.html
<!DOCTYPE html>
<script nonce="abc" src="/resources/testharness.js"></script>
<script nonce="abc" src="/resources/testharnessreport.js"></script>
<script nonce="abc" src="/preload/resources/preload_helper.js"></script>
<script nonce="abc">
    var t = async_test('Makes sure that Link headers preload resources with CSP nonce');
</script>
<script nonce="abc" src="resources/dummy.js?pipe=trickle(d5)&link-header-preload-nonce"></script>
<script nonce="abc">
    window.addEventListener('load', t.step_func(function() {
        verifyPreloadAndRTSupport();
        verifyNumberOfDownloads("resources/dummy.js?without-nonce", 0);
        verifyNumberOfDownloads("resources/dummy.js?with-nonce", 1);
        t.done();
    }));
</script>
back to top