Use a stricter test for the "identifier" attribute.
--- a/test/touchevents/single-touch.html Tue Apr 26 08:46:48 2011 -0700
+++ b/test/touchevents/single-touch.html Mon Apr 25 12:10:07 2011 -0700
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<html>
<head>
- <title>Touch Events: Touch area tests</title>
+ <title>Touch Events: Single-touch tests</title>
<meta name="viewport" content="width=device-width">
<script src="../testharness.js"></script>
<script>
@@ -39,9 +39,10 @@
var tt = ev.targetTouches[0];
test(function() {
- assert_equals(t.identifier, ct.identifier, "touches and changedTouches match.");
- assert_equals(t.identifier, tt.identifier, "touches and targetTouches match.");
- }, "TouchLists contain the same Touch.");
+ assert_equals(t.identifier, 0, "touches identifier is 0.");
+ assert_equals(ct.identifier, 0, "changedTouches identifier is 0.");
+ assert_equals(tt.identifier, 0, "targetTouches identifier is 0.");
+ }, "Touch identifiers are correct.");
test(function() {
assert_true(t.rotationAngle >= 0, "rotationAngle must be >= 0.");