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 layoutTestController.notifyDone(); 31 } 32 33 document.ontouchstart = finishTest; 34 35 36 37If the test doesn'
t crash, then PASS</p> 38 </body> 39 </html> 40