radiusX and radiusY must be positive.
--- a/test/touchevents/single-touch.html Sun Apr 24 21:27:04 2011 -0700
+++ b/test/touchevents/single-touch.html Sun Apr 24 21:28:56 2011 -0700
@@ -20,12 +20,16 @@
assert_equals(ev.touches.length, 1, "One touch point.");
assert_equals(ev.changedTouches.length, 1, "One changed touch point.");
assert_equals(ev.targetTouches.length, 1, "One target touch point.");
+ }, "TouchList lengths are correct.");
+ test(function() {
var t = ev.touches[0];
assert_true(t.rotationAngle >= 0, "rotationAngle must be >= 0.");
assert_true(t.rotationAngle < 90, "rotationAngle must be > 90.");
- }, "touchstart event attributes are correct");
+ assert_true(t.radiusX > 0, "radiusX is positive.");
+ assert_true(t.radiusY > 0, "radiusY is positive.");
+ }, "TouchPoint area attributes are correct");
done();
});
--- a/touchevents.html Sun Apr 24 21:27:04 2011 -0700
+++ b/touchevents.html Sun Apr 24 21:28:56 2011 -0700
@@ -156,12 +156,12 @@
<dt>readonly attribute long radiusX</dt>
<dd>
- the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the x-axis, in pixels of the same scale as <a>screenX</a>; <code>1</code> if no value is known.
+ the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the x-axis, in pixels of the same scale as <a>screenX</a>; <code>1</code> if no value is known. The value must be positive.
<p class="issue" id="issue-units"><strong>Issue:</strong> What are units of radiusX/radiusY? CSS Pixels?</p>
</dd>
<dt>readonly attribute long radiusY</dt>
<dd>
- the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the y-axis, in pixels of the same scale as <a>screenY</a>; <code>1</code> if no value is known.
+ the radius of the ellipse which most closely circumscribes the touching area (e.g. finger, stylus) along the y-axis, in pixels of the same scale as <a>screenY</a>; <code>1</code> if no value is known. The value must be positive.
</dd>
<dt>readonly attribute float rotationAngle</dt>