| Index: LayoutTests/fast/dom/HTMLDocument/document-write-variadic.html
|
| diff --git a/LayoutTests/fast/dom/HTMLDocument/document-write-variadic.html b/LayoutTests/fast/dom/HTMLDocument/document-write-variadic.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e74e20f92eaafb77e9c606b84bbce704ebb5102e
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/HTMLDocument/document-write-variadic.html
|
| @@ -0,0 +1,37 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<p>Check the behavior of HTMLDocument.write() / writeln().</p>
|
| +You should see exactly 2 'PASS' lines below:<br>
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| +// Check that HTMLDocument.write() / writeln() accept several string arguments.
|
| +document.write('P', 'A', 'SS', "<br>");
|
| +document.writeln('P', 'A', 'SS', "<br>");
|
| +document.write("<br>");
|
| +</script>
|
| +
|
| +You should see exactly 2 'null' lines below:<br>
|
| +<script>
|
| +document.write(null);
|
| +document.write("<br>");
|
| +document.writeln(null);
|
| +document.write("<br><br>");
|
| +</script>
|
| +You should see exactly 2 'undefined' lines below:<br>
|
| +<script>
|
| +document.write(undefined);
|
| +document.write("<br>");
|
| +document.writeln(undefined);
|
| +document.write("<br>");
|
| +
|
| +document.write("");
|
| +document.writeln("");
|
| +
|
| +document.write();
|
| +document.writeln();
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|