Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / touch / resources / send-touch-up.html
blobfaa1e471bf3bb020bc11457249fa9a8f3e15bc71
1 <html>
2 <head>
3 <title></title>
4 <script type='text/javascript'>
5 function doGC()
7 if (window.GCController)
8 return GCController.collect();
10 if (window.gc)
11 return window.gc();
13 for (var i = 0; i < 10000; i++)
14 var s = new String("");
17 function sendTouchUp()
19 doGC();
20 // This touchend will cause a crash if the bug is present.
21 eventSender.releaseTouchPoint(0);
22 eventSender.touchEnd();
23 // This touchstart will finish the test when we don't crash.
24 eventSender.addTouchPoint(10,10);
25 eventSender.touchStart();
28 function finishTest(e)
30 testRunner.notifyDone();
33 document.ontouchstart = finishTest;
34 </script>
35 </head>
36 <body onload="sendTouchUp();">
37 <p>If the test doesn't crash, then PASS</p>
38 </body>
39 </html>