1 Test touch adjustment on a large div. The adjusted touch point should lie inside the target element and within the touch area.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 Overlapping touch above the target should snap to the top of the target element.
8 PASS adjustedNode.id is element.id
9 PASS adjustedPoint.x >= targetBounds.left is true
10 PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
11 PASS adjustedPoint.y >= targetBounds.top is true
12 PASS adjustedPoint.y <= targetBounds.top + targetBounds.height is true
13 PASS adjustedPoint.x >= touchBounds.x is true
14 PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
15 PASS adjustedPoint.y >= touchBounds.y is true
16 PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
18 Overlapping touch below the target should snap to the bottom of the target element.
19 PASS adjustedNode.id is element.id
20 PASS adjustedPoint.x >= targetBounds.left is true
21 PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
22 PASS adjustedPoint.y >= targetBounds.top is true
23 PASS adjustedPoint.y <= targetBounds.top + targetBounds.height is true
24 PASS adjustedPoint.x >= touchBounds.x is true
25 PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
26 PASS adjustedPoint.y >= touchBounds.y is true
27 PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
29 Overlapping touch left of the target should snap to the left side of the target element.
30 PASS adjustedNode.id is element.id
31 PASS adjustedPoint.x >= targetBounds.left is true
32 PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
33 PASS adjustedPoint.y >= targetBounds.top is true
34 PASS adjustedPoint.y <= targetBounds.top + targetBounds.height is true
35 PASS adjustedPoint.x >= touchBounds.x is true
36 PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
37 PASS adjustedPoint.y >= touchBounds.y is true
38 PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
40 Overlapping touch right of the target should snap to the right side of the target element.
41 PASS adjustedNode.id is element.id
42 PASS adjustedPoint.x >= targetBounds.left is true
43 PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
44 PASS adjustedPoint.y >= targetBounds.top is true
45 PASS adjustedPoint.y <= targetBounds.top + targetBounds.height is true
46 PASS adjustedPoint.x >= touchBounds.x is true
47 PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
48 PASS adjustedPoint.y >= touchBounds.y is true
49 PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
51 Test touch area contained within the target element.
52 PASS adjustedNode.id is element.id
53 PASS adjustedPoint.x >= targetBounds.left is true
54 PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
55 PASS adjustedPoint.y >= targetBounds.top is true
56 PASS adjustedPoint.y <= targetBounds.top + targetBounds.height is true
57 PASS adjustedPoint.x >= touchBounds.x is true
58 PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
59 PASS adjustedPoint.y >= touchBounds.y is true
60 PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
61 PASS successfullyParsed is true