1 Test touch adjustment over pseudo elements. Pseudo elements should be candidates for adjustment, but should not themselves be returned as valid target nodes.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Test touch area contained within the pseudo element.
7 PASS adjustedNode.id is element.id
8 PASS adjustedPoint.x >= targetBounds.left is true
9 PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
10 PASS adjustedPoint.y >= targetBounds.top is true
11 PASS adjustedPoint.y <= targetBounds.top + targetBounds.height is true
12 PASS adjustedPoint.x >= touchBounds.x is true
13 PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
14 PASS adjustedPoint.y >= touchBounds.y is true
15 PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
17 Overlapping touch above the target should snap to the top of the pseudo element.
18 PASS adjustedNode.id is element.id
19 PASS adjustedPoint.x >= targetBounds.left is true
20 PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
21 PASS adjustedPoint.y >= targetBounds.top is true
22 PASS adjustedPoint.y <= targetBounds.top + targetBounds.height is true
23 PASS adjustedPoint.x >= touchBounds.x is true
24 PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
25 PASS adjustedPoint.y >= touchBounds.y is true
26 PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
28 Overlapping touch below the target should snap to the bottom of the pseudo element.
29 PASS adjustedNode.id is element.id
30 PASS adjustedPoint.x >= targetBounds.left is true
31 PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
32 PASS adjustedPoint.y >= targetBounds.top is true
33 PASS adjustedPoint.y <= targetBounds.top + targetBounds.height is true
34 PASS adjustedPoint.x >= touchBounds.x is true
35 PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
36 PASS adjustedPoint.y >= touchBounds.y is true
37 PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
39 Overlapping touch left of the target should snap to the left side of the pseudo element.
40 PASS adjustedNode.id is element.id
41 PASS adjustedPoint.x >= targetBounds.left is true
42 PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
43 PASS adjustedPoint.y >= targetBounds.top is true
44 PASS adjustedPoint.y <= targetBounds.top + targetBounds.height is true
45 PASS adjustedPoint.x >= touchBounds.x is true
46 PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
47 PASS adjustedPoint.y >= touchBounds.y is true
48 PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
50 Overlapping touch right of the target should snap to the right side of the pseudo element.
51 PASS adjustedNode.id is element.id
52 PASS adjustedPoint.x >= targetBounds.left is true
53 PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
54 PASS adjustedPoint.y >= targetBounds.top is true
55 PASS adjustedPoint.y <= targetBounds.top + targetBounds.height is true
56 PASS adjustedPoint.x >= touchBounds.x is true
57 PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
58 PASS adjustedPoint.y >= touchBounds.y is true
59 PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
61 PASS successfullyParsed is true