ind");

  test(t => {
    let p = window.trustedTypes.createPolicy('TestPolicyScript8', null);
    assert_throws_js(TypeError, _ => {
      p.createScript('whatever');
    });
  }, "script - calling undefined callback throws");

  test(t => {
    let p = window.trustedTypes.createPolicy('TestPolicyScript9', { createScript: createScriptJS });
    assert_throws_js(TypeError, _ => {
      p.createHTML(INPUTS.HTML);
    });
    assert_throws_js(TypeError, _ => {
      p.createScriptURL(INPUTS.SCRIPTURL);
    })