Index: LayoutTests/touchadjustment/nested-shadow-node.html |
diff --git a/LayoutTests/touchadjustment/nested-shadow-node.html b/LayoutTests/touchadjustment/nested-shadow-node.html |
index f4f978e8f673988de53048d3e53d1c647201a536..487cc197825ec78cd15f7e2620a65e3d2ae59daf 100644 |
--- a/LayoutTests/touchadjustment/nested-shadow-node.html |
+++ b/LayoutTests/touchadjustment/nested-shadow-node.html |
@@ -3,6 +3,7 @@ |
<head> |
<title>Touch Adjustment : Touch adjustment does not target shadow DOM elements - bug 89556</title> |
<script src="../resources/js-test.js"></script> |
+ <script src="resources/touchadjustment.js"></script> |
<style> |
#targetDiv { |
background: #00f; |
@@ -82,8 +83,7 @@ |
function testTouch(touchX, touchY, padding, adjustedX, adjustedY, tolerance) { |
var left = touchX - padding / 2; |
var top = touchY - padding / 2; |
- adjustedNode = internals.touchNodeAdjustedToBestClickableNode(left, top, padding, padding, document); |
- shouldBe('adjustedNode.id', 'element.id'); |
+ testTouchPoint(touchPoint(left, top, padding), element, /* allowTextNodes */ false, /* disallowShadowDOM */ true); |
adjustedPoint = internals.touchPositionAdjustedToBestClickableNode(left, top, padding, padding, document); |
shouldBeCloseTo('adjustedPoint.x', adjustedX, tolerance); |
shouldBeCloseTo('adjustedPoint.y', adjustedY, tolerance); |