Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / touch / touch-target-removed-crash.html
blob02a392c935e6471465603386bf84657af954d952
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">Test passes if no crash.</p>
5 <script>
6 if (window.testRunner) {
8 window.testRunner.dumpAsText();
10 function crash() {
11 var div = document.createElement('div');
12 div.ontouchstart = function() { };
13 document.body.appendChild(div);
14 window.internals.touchEventHandlerCount(document);
15 div.parentNode.removeChild(div);
16 div = 0;
17 if (window.GCController)
18 GCController.collect();
19 window.internals.touchEventHandlerCount(document);
22 crash();
24 </script>
25 </body>