| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 | 4 |
| 5 function onload() | 5 function onload() |
| 6 { | 6 { |
| 7 if (window.testRunner) | 7 if (window.testRunner) |
| 8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
| 9 | 9 |
| 10 // Following code generates an exception. | 10 // Following code generates an exception. |
| 11 var p = document.createTextNode(); | 11 var p = document.createTextNode(''); |
| 12 p.textContent = "foo"; | 12 p.textContent = "foo"; |
| 13 p.splitText(10000); | 13 p.splitText(10000); |
| 14 } | 14 } |
| 15 | 15 |
| 16 </script> | 16 </script> |
| 17 </head> | 17 </head> |
| 18 | 18 |
| 19 <body onload="onload()"> | 19 <body onload="onload()"> |
| 20 <p> | 20 <p> |
| 21 This tests that we are getting the correct message for DOM Exception 1: INDEX_SI
ZE_ERR. | 21 This tests that we are getting the correct message for DOM Exception 1: INDEX_SI
ZE_ERR. |
| 22 </p> | 22 </p> |
| 23 | 23 |
| 24 </body> | 24 </body> |
| 25 </html> | 25 </html> |
| OLD | NEW |