OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <p id="description">Test passes if no crash.</p> | 4 <p id="description">Test passes if no crash.</p> |
5 <script> | 5 <script> |
6 if (!window.testRunner) | 6 if (!window.testRunner) |
7 return; | 7 return; |
8 | 8 |
9 window.testRunner.dumpAsText(); | 9 window.testRunner.dumpAsText(); |
10 | 10 |
11 function crash() { | 11 function crash() { |
12 var div = document.createElement('div'); | 12 var div = document.createElement('div'); |
13 div.ontouchstart = function() { }; | 13 div.ontouchstart = function() { }; |
14 document.body.appendChild(div); | 14 document.body.appendChild(div); |
15 window.internals.touchEventHandlerCount(document); | 15 window.internals.touchEventHandlerCount(document); |
16 div.parentNode.removeChild(div); | 16 div.parentNode.removeChild(div); |
17 div = 0; | 17 div = 0; |
18 if (window.GCController) | 18 if (window.GCController) |
19 GCController.collect(); | 19 GCController.collect(); |
20 window.internals.touchEventHandlerCount(document); | 20 window.internals.touchEventHandlerCount(document); |
21 } | 21 } |
22 | 22 |
23 crash(); | 23 crash(); |
24 </script> | 24 </script> |
25 </body> | 25 </body> |
OLD | NEW |