testing/web-platform/tests/trusted-types/TrustedTypePolicyFactory-createPolicy-cspTests-noNamesGiven.tentative.html
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 03 Dec 2020 08:30:44 +0000
changeset 559183 d4b21131a094a0819b8856fbf4165cfb32d671c6
parent 531924 e07cf3d4936f99965d8d52afab0560b7cbfd7975
permissions -rw-r--r--
Bug 1678226 - Use the appropriately sized arm_neon_state64_t for thread float state on arm64 mac. r=lth Differential Revision: https://phabricator.services.mozilla.com/D98563

<!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>
  //No name given test
  test(t => {
    assert_throws_js(TypeError, _ => {
      window.trustedTypes.createPolicy('SomeName', { createHTML: s => s } );
    });
  }, "No name list given - policy creation throws");
</script>