| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 function runTests() | 5 function runTests() |
| 6 { | 6 { |
| 7 if (window.testRunner) | 7 if (window.testRunner) |
| 8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
| 9 | 9 |
| 10 alert(undefined); | 10 alert(undefined); |
| 11 alert(null); | 11 alert(null); |
| 12 confirm(undefined); | 12 confirm(undefined); |
| 13 confirm(null); | 13 confirm(null); |
| 14 prompt(undefined); | 14 prompt(undefined); |
| 15 prompt(null); | 15 prompt(null); |
| 16 | 16 |
| 17 alert(); | 17 alert(); |
| 18 confirm(); | 18 confirm(); |
| 19 prompt(); | 19 prompt(); |
| 20 } | 20 } |
| 21 </script> | 21 </script> |
| 22 </head> | 22 </head> |
| 23 <body onload="runTests()"> | 23 <body onload="runTests()"> |
| 24 <p>The alerts that show up (or if this is running under DRT, that is dumped)
should contain text; none should be empty. | |
| 25 This isn't entirely consistent with other browsers in every case, but since
there's no real use case for this, | |
| 26 it's best to be explicit rather than subtle and empty.</p> | |
| 27 </body> | 24 </body> |
| 28 </html> | 25 </html> |
| OLD | NEW |