https://github.com/web-platform-tests/wpt
Raw File
Tip revision: b5ef37f1d7620f8fba03d5ad3bfa39e28e13fa64 authored by Lan Wei on 20 December 2018, 02:33:33 UTC
Support pen inputs in web platform tests
Tip revision: b5ef37f
TrustedTypePolicy-CSP-wildcard.tentative.html
<!DOCTYPE html>
<script src="/resources/testharness.js" ></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/helper.sub.js"></script>

<meta http-equiv="Content-Security-Policy" content="trusted-types *">
<body>
<script>
  test(t => {
    let policy = window.TrustedTypes.createPolicy('SomeName', { createHTML: s => s } );
    assert_equals(policy.name, 'SomeName');
  }, "CSP supports wildcards.");
</script>
back to top