Summary

Harness status: OK

Found 5 tests

Details

ResultTest NameMessage
PassTouch constructor with insufficient properties
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {new Touch();}", "Touch constructor with no argument")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:16:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {new Touch(null);}", "Touch constructor with null argument")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:17:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {new Touch(undefined);}", "Touch constructor with undefined argument")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:18:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {new Touch({});}", "Touch constructor with empty object")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:19:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {new Touch({         identifier: testIdentifier     });}", "Touch constructor with only identifier")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:20:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {new Touch({         target: testTarget     });}", "Touch constructor with only target")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:23:5)
PassTouch constructor with non-EventTarget target
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {new Touch({         identifier: testIdentifier,         target: null     });}", "Touch constructor with null target")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:32:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {new Touch({         identifier: testIdentifier,         target: undefined     });}", "Touch constructor with undefined target")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:36:5)
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {new Touch({         identifier: testIdentifier,         target: location     });}", "Touch constructor with Location target")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:40:5)
PassTouch constructor exists and creates a Touch object with minimum properties
Asserts run
Pass
assert_equals("[object Touch]", "[object Touch]", "touch is of type Touch")
    at check_Touch_object ( /touch-events/support/touch.js:4:5)
Pass
assert_true(true, "identifier attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "identifier attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "target attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_true(true, "EventTarget must be an Element.")
    at  /touch-events/support/touch.js:32:17
Pass
assert_true(true, "screenX attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "screenX attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "screenY attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "screenY attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "clientX attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "clientX attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "clientY attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "clientY attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "pageX attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "pageX attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "pageY attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "pageY attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "radiusX attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "radiusX attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "radiusY attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "radiusY attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "rotationAngle attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "rotationAngle attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "force attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "force attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_equals(Element node <div id="target0"></div>, Element node <div id="target0"></div>, "touch.target is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:56:5)
Pass
assert_equals(74, 74, "touch.identifier is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:57:5)
Pass
assert_approx_equals(0, 0, 0.00001, "touch.pageX is default value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:58:5)
Pass
assert_approx_equals(0, 0, 0.00001, "touch.pageY is default value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:59:5)
Pass
assert_approx_equals(0, 0, 0.00001, "touch.screenX is default value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:60:5)
Pass
assert_approx_equals(0, 0, 0.00001, "touch.screenY is default value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:61:5)
Pass
assert_approx_equals(0, 0, 0.00001, "touch.clientX is default value.")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:62:5)
Pass
assert_approx_equals(0, 0, 0.00001, "touch.clientY is default value.")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:63:5)
PassTouch constructor exists and creates a Touch object with requested properties
Asserts run
Pass
assert_equals("[object Touch]", "[object Touch]", "touch is of type Touch")
    at check_Touch_object ( /touch-events/support/touch.js:4:5)
Pass
assert_true(true, "identifier attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "identifier attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "target attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_true(true, "EventTarget must be an Element.")
    at  /touch-events/support/touch.js:32:17
Pass
assert_true(true, "screenX attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "screenX attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "screenY attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "screenY attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "clientX attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "clientX attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "clientY attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "clientY attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "pageX attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "pageX attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "pageY attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "pageY attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "radiusX attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "radiusX attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "radiusY attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "radiusY attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "rotationAngle attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "rotationAngle attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_true(true, "force attribute in Touch object")
    at  /touch-events/support/touch.js:23:9
Pass
assert_equals("number", "number", "force attribute of type long")
    at  /touch-events/support/touch.js:28:17
Pass
assert_equals(42, 42, "touch.identifier is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:88:5)
Pass
assert_equals(Element node <div id="target0"></div>, Element node <div id="target0"></div>, "touch.target is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:89:5)
Pass
assert_approx_equals(15, 15, 0.00001, "touch.pageX is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:90:5)
Pass
assert_approx_equals(20.200000762939453, 20.2, 0.00001, "touch.pageY is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:91:5)
Pass
assert_approx_equals(35.34000015258789, 35.34, 0.00001, "touch.screenX is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:92:5)
Pass
assert_approx_equals(40.560001373291016, 40.56, 0.00001, "touch.screenY is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:93:5)
Pass
assert_approx_equals(10.175000190734863, 10.175, 0.00001, "touch.clientX is requested value.")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:94:5)
Pass
assert_approx_equals(5, 5, 0.00001, "touch.clientY is requested value.")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:95:5)
PassTouchEvent constructor exists and creates a TouchEvent object with requested properties
Asserts run
Pass
assert_true(true, "ontouchstart event is a TouchEvent event")
    at check_TouchEvent ( /touch-events/support/touch.js:80:5)
Pass
assert_true(true, "touches attribute in ontouchstart event")
    at  /touch-events/support/touch.js:93:9
Pass
assert_equals("[object TouchList]", "[object TouchList]", "touches attribute of type TouchList")
    at  /touch-events/support/touch.js:100:17
Pass
assert_true(true, "targetTouches attribute in ontouchstart event")
    at  /touch-events/support/touch.js:93:9
Pass
assert_equals("[object TouchList]", "[object TouchList]", "targetTouches attribute of type TouchList")
    at  /touch-events/support/touch.js:100:17
Pass
assert_true(true, "changedTouches attribute in ontouchstart event")
    at  /touch-events/support/touch.js:93:9
Pass
assert_equals("[object TouchList]", "[object TouchList]", "changedTouches attribute of type TouchList")
    at  /touch-events/support/touch.js:100:17
Pass
assert_true(true, "altKey attribute in ontouchstart event")
    at  /touch-events/support/touch.js:93:9
Pass
assert_equals("boolean", "boolean", "altKey attribute of type boolean")
    at  /touch-events/support/touch.js:97:17
Pass
assert_true(true, "metaKey attribute in ontouchstart event")
    at  /touch-events/support/touch.js:93:9
Pass
assert_equals("boolean", "boolean", "metaKey attribute of type boolean")
    at  /touch-events/support/touch.js:97:17
Pass
assert_true(true, "ctrlKey attribute in ontouchstart event")
    at  /touch-events/support/touch.js:93:9
Pass
assert_equals("boolean", "boolean", "ctrlKey attribute of type boolean")
    at  /touch-events/support/touch.js:97:17
Pass
assert_true(true, "shiftKey attribute in ontouchstart event")
    at  /touch-events/support/touch.js:93:9
Pass
assert_equals("boolean", "boolean", "shiftKey attribute of type boolean")
    at  /touch-events/support/touch.js:97:17
Pass
assert_equals("ontouchstart", "ontouchstart", "touchEvent.type is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:131:5)
Pass
assert_equals(2, 2, "touchEvent.touches.length is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:132:5)
Pass
assert_equals(object "[object Touch]", object "[object Touch]", "touchEvent.touches[0] is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:133:5)
Pass
assert_equals(object "[object Touch]", object "[object Touch]", "touchEvent.touches[1] is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:134:5)
Pass
assert_equals(1, 1, "touchEvent.targetTouches.length is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:135:5)
Pass
assert_equals(object "[object Touch]", object "[object Touch]", "touchEvent.targetTouches[0] is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:136:5)
Pass
assert_equals(0, 0, "touchEvent.changedTouches.length is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:137:5)
Pass
assert_equals(true, true, "touchEvent.altKey is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:138:5)
Pass
assert_equals(false, false, "touchEvent.metaKey is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:139:5)
Pass
assert_equals(false, false, "touchEvent.ctrlKey is requested value")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:140:5)
Pass
assert_equals(false, false, "touchEvent.shiftKey is requested value.")
    at Test.<anonymous> ( /touch-events/touch-touchevent-constructor.html:141:5)