1<html> 2<head> 3<title></title> 4<script type='text/javascript'> 5function 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 17function 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 28function finishTest(e) 29{ 30 layoutTestController.notifyDone(); 31} 32 33document.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> 40