Index: LayoutTests/compositing/gestures/gesture-tapHighlight-simple-multi-target.html |
diff --git a/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-multi-line.html b/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-multi-target.html |
similarity index 57% |
copy from LayoutTests/compositing/gestures/gesture-tapHighlight-simple-multi-line.html |
copy to LayoutTests/compositing/gestures/gesture-tapHighlight-simple-multi-target.html |
index 5c617d84d7cbff8d86177baffe4aea9e744b42e0..8952174b682a38459b3f37ed11a47b85318af9ad 100644 |
--- a/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-multi-line.html |
+++ b/LayoutTests/compositing/gestures/gesture-tapHighlight-simple-multi-target.html |
@@ -5,25 +5,26 @@ |
</head> |
<body onload="runTest();"> |
<div style="-webkit-transform: translateZ(0); position: relative; left: 10; top: 40"> |
-<a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0.5)">Long Target<br>Link.</a> |
+<a href="" id="targetLink1" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0.5)">Link 1</a><br> |
+<a href="" id="targetLink2" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0.5)">Link 2</a> |
</div> |
<div style="position: relative; left: 10; top: 70"> |
-This test is successful if "Long Target Link" above is covered in two transparent green rectangles with square corners. |
+This test is successful if "Link 1" and "Link 2" above are covered in two transparent green rectangles with square corners. |
</div> |
<script> |
function runTest() { |
- var clientRect = document.getElementById('targetLink').getBoundingClientRect(); |
+ var clientRect = document.getElementById('targetLink1').getBoundingClientRect(); |
x = (clientRect.left + clientRect.right) / 2; |
- y = (clientRect.top + clientRect.bottom) / 2; |
+ y = clientRect.bottom; |
touchWidth = (clientRect.right - clientRect.left) / 4; |
- touchHeight = (clientRect.bottom - clientRect.top) / 4; |
+ touchHeight = (clientRect.bottom - clientRect.top) / 2; |
if (window.testRunner) { |
testRunner.dumpAsText(true); |
testRunner.waitUntilDone(); |
} |
if (window.eventSender) { |
- eventSender.gestureTapDown(x, y, touchWidth, touchHeight); |
+ eventSender.gestureTap(x, y, touchWidth, touchHeight); |
window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); |
} else { |
debug("This test requires DumpRenderTree."); |