https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9ab15c4be9aa0ecef8a7ae08cc5b45f1836abad7 authored by Stephen McGruer on 05 April 2018, 13:37:39 UTC
Web Animations: remove timing objects
Tip revision: 9ab15c4
blockeduri-inline.html
<!doctype html>
<meta http-equiv="Content-Security-Policy" content="script-src 'nonce-abc'">
<script nonce="abc" src="/resources/testharness.js"></script>
<script nonce="abc" src="/resources/testharnessreport.js"></script>
<script nonce="abc">
    async_test(t => {
        var watcher = new EventWatcher(t, document, 'securitypolicyviolation');
        watcher.wait_for('securitypolicyviolation').then(t.step_func_done(e => {
            assert_equals(e.blockedURI, "inline");
            assert_equals(e.lineNumber, 14);
        }));
    }, "Inline violations have a blockedURI of 'inline'");
</script>
<script>
    test(t => {
        assert_unreached();
    }, "Blocked script shouldn't execute.");
</script>
back to top