Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: LayoutTests/fast/dom/HTMLDocument/document-write-variadic.html

Issue 59693007: Get rid of custom code for HTMLDocument.write() / writeln() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Extend layout test Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLDocument/document-write-variadic-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLDocument/document-write-variadic-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698