let text = document.createTextNode("fail");
    s.appendChild(text);
    await trusted_type_violation_without_exception_for(async _ =>
      await checkMessage(t, _ => container.appendChild(s), 0)
    );
    assert_array_equals(seenSinks, ["HTMLScriptElement text"]);
  }, "Test a failing default policy.");

  promise_test(async t => {
    t.add_cleanup(clearSeenSinks);
    const inserted_script = document.getElementById("script1");
    await no_trusted_type_violation_for(_ =>
      inserted_script.innerHTML