https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e46883f182c0764e1fa40084363d11ef2024c47b authored by Robert Ma on 05 April 2018, 18:09:27 UTC
Bind StashServer to server_host instead of browser_host
Tip revision: e46883f
document-write.tentative.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script>
<body>
<script>
  promise_test(t => {
    var html = TrustedHTML.escape(STRINGS.unescapedHTML);
    return createFrameAndWrite(html).then(i => {
      assert_equals(i.contentDocument.body.innerText, STRINGS.unescapedHTML, "innerText");
      i.remove();
    });
  }, "document.write(TrustedHTML).");
</script>
back to top