diff options
Diffstat (limited to 'LayoutTests/fast/events/touch/resources/send-touch-up.html')
-rw-r--r-- | LayoutTests/fast/events/touch/resources/send-touch-up.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/LayoutTests/fast/events/touch/resources/send-touch-up.html b/LayoutTests/fast/events/touch/resources/send-touch-up.html new file mode 100644 index 0000000..8b7380f --- /dev/null +++ b/LayoutTests/fast/events/touch/resources/send-touch-up.html @@ -0,0 +1,39 @@ +<html> +<head> +<title></title> +<script type='text/javascript'> +function doGC() +{ + if (window.GCController) + return GCController.collect(); + + if (window.gc) + return window.gc(); + + for (var i = 0; i < 10000; i++) + var s = new String(""); +} + +function sendTouchUp() +{ + doGC(); + // This touchend will cause a crash if the bug is present. + eventSender.releaseTouchPoint(0); + eventSender.touchEnd(); + // This touchstart will finish the test when we don't crash. + eventSender.addTouchPoint(10,10); + eventSender.touchStart(); +} + +function finishTest(e) +{ + layoutTestController.notifyDone(); +} + +document.ontouchstart = finishTest; +</script> +</head> +<body onload="sendTouchUp();"> +<p>If the test doesn't crash, then PASS</p> +</body> +</html> |