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

Unified Diff: LayoutTests/fast/events/touch/touch-fractional-coordinates.html

Issue 1019273002: Revert "Tweaks layoutTests to use eventSender.setTouchPointRadius correctly" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/fast/events/touch/touch-fractional-coordinates.html
diff --git a/LayoutTests/fast/events/touch/touch-fractional-coordinates.html b/LayoutTests/fast/events/touch/touch-fractional-coordinates.html
index 6f4b2c3b721cc4604a7ebf60dd4aaeafd8e4d1c4..32d4d952955f4ca8b5bdf6b48254ff2ee595d99e 100644
--- a/LayoutTests/fast/events/touch/touch-fractional-coordinates.html
+++ b/LayoutTests/fast/events/touch/touch-fractional-coordinates.html
@@ -71,9 +71,7 @@ iframe {
}
debug('Testing simple fractional touch');
- eventSender.addTouchPoint(30.33, 4.5);
- if (eventSender.setTouchPointRadius)
- eventSender.setTouchPointRadius(0, 5.2, 6.3, false);
+ eventSender.addTouchPoint(30.33, 4.5, 5.2, 6.3);
eventSender.touchStart();
if (expectEvent('touchstart')) {
shouldBeCloseTo('lastEvent.changedTouches[0].screenX', 30.33, floatPrecision);
@@ -82,10 +80,8 @@ iframe {
shouldBeCloseTo('lastEvent.changedTouches[0].clientY', 4.5, floatPrecision);
shouldBeCloseTo('lastEvent.changedTouches[0].pageX', 30.33 + scrollX, floatPrecision);
shouldBeCloseTo('lastEvent.changedTouches[0].pageY', 4.5 + scrollY, floatPrecision);
- if (eventSender.setTouchPointRadius) {
- shouldBeCloseTo('lastEvent.changedTouches[0].webkitRadiusX', 5.2, floatPrecision);
- shouldBeCloseTo('lastEvent.changedTouches[0].webkitRadiusY', 6.3, floatPrecision);
- }
+ shouldBeCloseTo('lastEvent.changedTouches[0].webkitRadiusX', 5.2, floatPrecision);
+ shouldBeCloseTo('lastEvent.changedTouches[0].webkitRadiusY', 6.3, floatPrecision);
}
eventSender.releaseTouchPoint(0);
eventSender.touchEnd();

Powered by Google App Engine
This is Rietveld 408576698