summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/gestures/gesture-tapHighlight-inline-block-crash.html
blob: 8417698088e7253d696f94263e4b9891de9e8d8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<a href="" id="targetLink" width="320" height="240" ><div>Shoudn't crash</div></a>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}
var targetLink = document.querySelector('#targetLink');
var clientRect = targetLink.getBoundingClientRect();
x = (clientRect.left + clientRect.right) / 2;
y = (clientRect.top + clientRect.bottom) / 2;
if (window.eventSender) {
    eventSender.gestureShowPress(x, y);
    window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
} else {
    debug("This test requires DumpRenderTree.");
}
</script>