| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <body id='console'> | |
| 3 <script> | |
| 4 if (window.testRunner) { | |
| 5 testRunner.dumpAsText(); | |
| 6 testRunner.waitUntilDone(); | |
| 7 } | |
| 8 | |
| 9 var xhr = new XMLHttpRequest; | |
| 10 function secondRequest() | |
| 11 { | |
| 12 xhr.onreadystatechange = function() | |
| 13 { | |
| 14 if (xhr.readyState == xhr.DONE) { | |
| 15 document.getElementById('console').appendChild(document.createTextNo
de("PASS")); | |
| 16 testRunner.notifyDone(); | |
| 17 } | |
| 18 } | |
| 19 xhr.open("GET", "", true); | |
| 20 xhr.send(); | |
| 21 } | |
| 22 window.addEventListener("DOMSubtreeModified", secondRequest, true); | |
| 23 | |
| 24 document.head.appendChild(document.createTextNode('X')); | |
| 25 </script> | |
| 26 </body> | |
| 27 </html> | |
| OLD | NEW |