| <!DOCTYPE html> |
| <html> |
| <body> |
| <p id="description">Test passes if no crash.</p> |
| <script> |
| if (window.testRunner) { |
| |
| window.testRunner.dumpAsText(); |
| |
| function crash() { |
| var div = document.createElement('div'); |
| div.ontouchstart = function() { }; |
| document.body.appendChild(div); |
| window.internals.touchStartOrMoveEventHandlerCount(document); |
| div.parentNode.removeChild(div); |
| div = 0; |
| if (window.GCController) |
| GCController.collect(); |
| window.internals.touchStartOrMoveEventHandlerCount(document); |
| } |
| |
| crash(); |
| } |
| </script> |
| </body> |