diff options
Diffstat (limited to 'testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-writeln/document.writeln-03.html')
-rw-r--r-- | testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-writeln/document.writeln-03.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-writeln/document.writeln-03.html b/testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-writeln/document.writeln-03.html new file mode 100644 index 000000000..df9a7a15c --- /dev/null +++ b/testing/web-platform/tests/html/dom/dynamic-markup-insertion/document-writeln/document.writeln-03.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<title>document.writeln with multiple arguments</title> +<link rel="author" title="Sebmaster" href="mailto:wpt@smayr.name"> +<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-writeln%28%29"> +<link rel="help" href="https://html.spec.whatwg.org/multipage/#documents-in-the-dom"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id="log"></div> +<script> +test(function() { + var iframe = document.createElement("iframe"); + document.body.appendChild(iframe); + var doc = iframe.contentDocument; + doc.open(); + doc.writeln('a', 'b'); + doc.close(); + assert_equals(doc.documentElement.textContent, "ab\n"); +}, "Calling document.writeln with multiple arguments"); +</script> |