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

Unified Diff: LayoutTests/touchadjustment/rotated-node.html

Issue 338543003: Gesture event hit test refactoring and reduction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix release build Created 6 years, 6 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/rotated-node.html
diff --git a/LayoutTests/touchadjustment/rotated-node.html b/LayoutTests/touchadjustment/rotated-node.html
index 94a33eafd9760e56acdb68254b1ce378351b18f3..1d2c6b4cf606796cae9e729d61262703dbf20cb8 100644
--- a/LayoutTests/touchadjustment/rotated-node.html
+++ b/LayoutTests/touchadjustment/rotated-node.html
@@ -80,7 +80,9 @@
{
debug('\nAdjusted point within bounds');
var adjustedPoint = adjustTouchPoint(touchPoint(20, 0, 20))
- shouldBeWithin(adjustedPoint, touchPoint(20, 0, 20));
+ // Note: we allow 1 pixel of slop here due to corresponding 1px
+ // padding FIXME in HitTestLocation::rectForPoint.
+ shouldBeWithin(adjustedPoint, touchPoint(20.5, 0.5, 20.5));
adjustedPoint = adjustTouchPoint(touchPoint(60, 60, 20))
shouldBeWithin(adjustedPoint, touchPoint(60, 60, 20));
« no previous file with comments | « LayoutTests/fast/events/hit-test-counts-expected.txt ('k') | LayoutTests/touchadjustment/rotated-node-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698