testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-createPolicy-cspTests-none-skip.tentative.html
author Razvan Maries <rmaries@mozilla.com>
Thu, 26 Nov 2020 07:56:23 +0200
changeset 558457 7184fb5a42fbdd37b1d4863045bea812223ffd41
parent 535406 d39fbd88cf1da3d5dcb083d28717fd1239ad25fe
permissions -rw-r--r--
Backed out changeset 646459eb4a35 (bug 1459118) as per Henrik's request. CLOSED TREE

<!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 * 'none' 'allow-duplicates'">
<body>
<script>
  test(t => {
    window.trustedTypes.createPolicy('SomeName', { createHTML: s => s } );
  }, "Can create policy with name 'SomeName'");

  test(t => {
    window.trustedTypes.createPolicy('SomeName', { createHTML: s => s } );
  }, "Can create a second policy with name 'SomeName'");

  test(t => {
    window.trustedTypes.createPolicy('default', { createHTML: s => s } );
  }, "Can create policy with name 'default'");
</script>