OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script> | 4 <script> |
5 if (window.testRunner) | 5 if (window.testRunner) |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 | 7 |
8 function mutationCallback(mutations, observer) { | 8 function mutationCallback(mutations, observer) { |
9 mutations[0].addedNodes[-1]; | 9 mutations[0].addedNodes[-1]; |
10 } | 10 } |
11 | 11 |
12 var mutationObserver = new WebKitMutationObserver(mutationCallback); | 12 var mutationObserver = new MutationObserver(mutationCallback); |
13 mutationObserver.observe(document.body, {childList: true}); | 13 mutationObserver.observe(document.body, {childList: true}); |
14 document.body.appendChild(document.createTextNode("PASS. WebKit didn't crash")); | 14 document.body.appendChild(document.createTextNode("PASS. WebKit didn't crash")); |
15 </script> | 15 </script> |
16 </body> | 16 </body> |
17 </html> | 17 </html> |
OLD | NEW |