Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / events / touch / resources / send-touch-up.html
1 <html>
2 <head>
3 <title></title>
4 <script type='text/javascript'>
5 function doGC()
6 {
7     if (window.GCController)
8         return GCController.collect();
9
10     if (window.gc)
11         return window.gc();
12
13     for (var i = 0; i < 10000; i++)
14         var s = new String("");
15 }
16
17 function sendTouchUp()
18 {
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();
26 }
27
28 function finishTest(e)
29 {
30     testRunner.notifyDone();
31 }
32
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>