https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2fe512e906dc95dbe0a517b303c19e791399c86d authored by Kenichi Ishibashi on 12 April 2018, 07:12:22 UTC
S13nSW: Update wpt/service-workers/service-worker/navigation-preload/broken-chunked-encoding.https.html
Tip revision: 2fe512e
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