p = window.trustedTypes.createPolicy('TestPolicyHTML9', { createHTML: createHTMLJS });
    assert_throws_js(TypeError, _ => {
      p.createScript(INPUTS.SCRIPT);
    });
    assert_throws_js(TypeError, _ => {
      p.createScriptURL(INPUTS.SCRIPTURL);
    });
  }, "createHTML defined - calling undefined callbacks throws");

  //Script tests
  function createScriptTest(policyName, policy, expectedScript, t) {
    let p = window.trustedTypes.createPolicy(policyName, policy);
    let script = p.createScript('