https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 3e97222a89de5d7094b14bae8c9f469e28c6836b authored by James Graham on 11 April 2018, 18:02:33 UTC
Stop running tests on pypy
Tip revision: 3e97222
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