Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: LayoutTests/touchadjustment/pseudo-element-expected.txt

Issue 418133010: Fix touch adjustment to never return pseudo elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/touchadjustment/pseudo-element-expected.txt
diff --git a/LayoutTests/touchadjustment/big-div-expected.txt b/LayoutTests/touchadjustment/pseudo-element-expected.txt
similarity index 90%
copy from LayoutTests/touchadjustment/big-div-expected.txt
copy to LayoutTests/touchadjustment/pseudo-element-expected.txt
index 01e3b8f6c926e12ca0fa4d5fbebcb8c03f0deb03..052c7827edb57620962f522114c01f347ec7c433 100644
--- a/LayoutTests/touchadjustment/big-div-expected.txt
+++ b/LayoutTests/touchadjustment/pseudo-element-expected.txt
@@ -1,10 +1,9 @@
-Test touch adjustment on a large div. The adjusted touch point should lie inside the target element and within the touch area.
+Test touch adjustment over pseudo elements. Pseudo elements should be candidates for adjustment, but should not themselves be returned as valid target nodes.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-Overlapping touch above the target should snap to the top of the target element.
+Test touch area contained within the pseudo element.
PASS adjustedNode.id is element.id
Rick Byers 2014/07/25 19:59:13 Note that the failure mode of this test before my
PASS adjustedPoint.x >= targetBounds.left is true
PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
@@ -15,7 +14,7 @@ PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
PASS adjustedPoint.y >= touchBounds.y is true
PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
-Overlapping touch below the target should snap to the bottom of the target element.
+Overlapping touch above the target should snap to the top of the pseudo element.
PASS adjustedNode.id is element.id
PASS adjustedPoint.x >= targetBounds.left is true
PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
@@ -26,7 +25,7 @@ PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
PASS adjustedPoint.y >= touchBounds.y is true
PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
-Overlapping touch left of the target should snap to the left side of the target element.
+Overlapping touch below the target should snap to the bottom of the pseudo element.
PASS adjustedNode.id is element.id
PASS adjustedPoint.x >= targetBounds.left is true
PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
@@ -37,7 +36,7 @@ PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
PASS adjustedPoint.y >= touchBounds.y is true
PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
-Overlapping touch right of the target should snap to the right side of the target element.
+Overlapping touch left of the target should snap to the left side of the pseudo element.
PASS adjustedNode.id is element.id
PASS adjustedPoint.x >= targetBounds.left is true
PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
@@ -48,7 +47,7 @@ PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
PASS adjustedPoint.y >= touchBounds.y is true
PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
-Test touch area contained within the target element.
+Overlapping touch right of the target should snap to the right side of the pseudo element.
PASS adjustedNode.id is element.id
PASS adjustedPoint.x >= targetBounds.left is true
PASS adjustedPoint.x <= targetBounds.left + targetBounds.width is true
@@ -58,6 +57,7 @@ PASS adjustedPoint.x >= touchBounds.x is true
PASS adjustedPoint.x <= touchBounds.x + touchBounds.width is true
PASS adjustedPoint.y >= touchBounds.y is true
PASS adjustedPoint.y <= touchBounds.y + touchBounds.height is true
+
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698