blob: 8b7380f06b8dea84c505dadd68524148032c9725 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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>
|