Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLDocument / document-write-variadic.html
blobe74e20f92eaafb77e9c606b84bbce704ebb5102e
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>Check the behavior of HTMLDocument.write() / writeln().</p>
5 You should see exactly 2 'PASS' lines below:<br>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 // Check that HTMLDocument.write() / writeln() accept several string arguments.
11 document.write('P', 'A', 'SS', "<br>");
12 document.writeln('P', 'A', 'SS', "<br>");
13 document.write("<br>");
14 </script>
16 You should see exactly 2 'null' lines below:<br>
17 <script>
18 document.write(null);
19 document.write("<br>");
20 document.writeln(null);
21 document.write("<br><br>");
22 </script>
23 You should see exactly 2 'undefined' lines below:<br>
24 <script>
25 document.write(undefined);
26 document.write("<br>");
27 document.writeln(undefined);
28 document.write("<br>");
30 document.write("");
31 document.writeln("");
33 document.write();
34 document.writeln();
35 </script>
36 </body>
37 </html>