https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0518cdc5e847f3ba10a6fb0e08f3b51b0f5b6574 authored by Mattias Buelens on 08 March 2018, 20:54:03 UTC
Readable byte streams: autoAllocateChunkSize test must not ignore second read
Tip revision: 0518cdc
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