<!DOCTYPE html>
<script src="/resources/testharness.js" ></script>
<script src="/resources/testharnessreport.js"></script>
<!-- The CSP spec says a sandbox directive in a <meta> tag is ignored, so we set
     it and other rules in the .headers file. Please refer to that file. -->
<link rel="help" href="https://github.com/w3c/trusted-types/issues/513">
<script>
  test(_ => {
    assert_throws_js(TypeError, _ => {
      window.trustedTypes.createPolicy("ForbiddenPolicyName",
                                  