https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 224b3098a86c3928063db1d85c82978363ffd90b authored by Kent Tamura on 02 April 2018, 08:48:54 UTC
custom-elements: Add tests for callback timing with HTML parser.
Tip revision: 224b309
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