achShadow({mode: 'open'});
    }

    promise_test(async t => {
      await no_trusted_type_violation_for(_ =>
        createShadowRoot().setHTMLUnsafe(policy.createHTML(input))
      );
    }, "No violation reported for TrustedHTML.");

    promise_test(async t => {
      let violation = await trusted_type_violation_for(TypeError, _ =>
        createShadowRoot().setHTMLUnsafe(input)
      );
      assert_equals(violation.blockedURI, "trusted-types-sink");
      assert_equals(violation.sample, `ShadowRoot s