blob: a62cbf669d9a9b869ee0f842ebcab311831224e0 [file] [log] [blame]
<!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>