OLD | NEW |
(Empty) | |
| 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(); |
| 9 |
| 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> |
| 15 |
| 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>"); |
| 29 |
| 30 document.write(""); |
| 31 document.writeln(""); |
| 32 |
| 33 document.write(); |
| 34 document.writeln(); |
| 35 </script> |
| 36 </body> |
| 37 </html> |
OLD | NEW |