let s = createScriptElement();
    s.setAttribute("type", "module")
    let text = document.createTextNode("postMessage('default', '*');");
    s.appendChild(text);
    await no_trusted_type_violation_for(async _ =>
      await checkMessage(t, _ => container.appendChild(s), 1)
    );
    assert_array_equals(seenSinks, ["HTMLScriptElement text"]);
  }, "Test that default policy applies to module script.");

  promise_test(async t => {
    t.add_cleanup(clearSeenSinks);
    let s = createScriptElement();
    