| OLD | NEW |
| 1 // Check a Touch object's attributes for existence and correct type | 1 // Check a Touch object's attributes for existence and correct type |
| 2 // TA: 1.1.2, 1.1.3 | 2 // TA: 1.1.2, 1.1.3 |
| 3 function check_Touch_object(t) { | 3 function check_Touch_object(t) { |
| 4 assert_equals(Object.prototype.toString.call(t), "[object Touch]", "touch is
of type Touch"); | 4 assert_equals(Object.prototype.toString.call(t), "[object Touch]", "touch is
of type Touch"); |
| 5 [ | 5 [ |
| 6 ["long", "identifier"], | 6 ["long", "identifier"], |
| 7 ["EventTarget", "target"], | 7 ["EventTarget", "target"], |
| 8 ["long", "screenX"], | 8 ["long", "screenX"], |
| 9 ["long", "screenY"], | 9 ["long", "screenY"], |
| 10 ["long", "clientX"], | 10 ["long", "clientX"], |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 assert_equals(typeof ev[name], "boolean", name + " attribute of
type boolean"); | 97 assert_equals(typeof ev[name], "boolean", name + " attribute of
type boolean"); |
| 98 break; | 98 break; |
| 99 case "TouchList": | 99 case "TouchList": |
| 100 assert_equals(Object.prototype.toString.call(ev[name]), "[object
TouchList]", name + " attribute of type TouchList"); | 100 assert_equals(Object.prototype.toString.call(ev[name]), "[object
TouchList]", name + " attribute of type TouchList"); |
| 101 break; | 101 break; |
| 102 default: | 102 default: |
| 103 break; | 103 break; |
| 104 } | 104 } |
| 105 }); | 105 }); |
| 106 } | 106 } |
| OLD | NEW |