blob: f3cad14b685be8051c0eea98598b1a866faa46f6 [file] [log] [blame]
Tests Input.dispatchTouchEvent method.
------- Sequence ------
Dispatching event:
{
touchPoints : [
[0] : {
x : 100
y : 200
}
]
type : touchStart
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 100
pageY: 200
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
x : 200
y : 100
}
]
type : touchMove
}
-----Event-----
type: touchmove
----Touches----
id: 0
pageX: 200
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
]
type : touchEnd
}
-----Event-----
type: touchend
----Touches----
------- Sequence ------
Dispatching event:
{
modifiers : 8
touchPoints : [
[0] : {
id : <number>
x : 20
y : 30
}
[1] : {
force : 0
id : <number>
radiusX : 5
radiusY : 6
rotationAngle : 1
x : 100
y : 200
}
]
type : touchStart
}
-----Event-----
type: touchstart
shiftKey
----Touches----
id: 0
pageX: 20
pageY: 30
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
-----Event-----
type: touchstart
shiftKey
----Touches----
id: 0
pageX: 20
pageY: 30
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
id: 1
pageX: 100
pageY: 200
radiusX: 5
radiusY: 6
rotationAngle: 1
force: 0
Dispatching event:
{
touchPoints : [
]
type : touchEnd
}
-----Event-----
type: touchend
shiftKey
----Touches----
id: 0
pageX: 100
pageY: 200
radiusX: 5
radiusY: 6
rotationAngle: 1
force: 0
-----Event-----
type: touchend
----Touches----
------- Sequence ------
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 20
y : 30
}
]
type : touchStart
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 20
pageY: 30
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 20
y : 30
}
[1] : {
id : <number>
x : 100
y : 200
}
]
type : touchMove
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 20
pageY: 30
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
id: 1
pageX: 100
pageY: 200
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 25
y : 36
}
[1] : {
id : <number>
x : 101
y : 202
}
]
type : touchMove
}
-----Event-----
type: touchmove
----Touches----
id: 0
pageX: 25
pageY: 36
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
id: 1
pageX: 101
pageY: 202
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 103
y : 203
}
]
type : touchMove
}
-----Event-----
type: touchmove
----Touches----
id: 0
pageX: 25
pageY: 36
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
id: 1
pageX: 103
pageY: 203
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
]
type : touchEnd
}
-----Event-----
type: touchend
----Touches----
id: 0
pageX: 103
pageY: 203
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
-----Event-----
type: touchend
----Touches----
------- Sequence ------
Dispatching event:
{
touchPoints : [
]
type : touchEnd
}
{
error : {
code : -32602
message : Must send a TouchStart first to start a new touch.
}
id : <number>
sessionId : <string>
}
------- Sequence ------
Dispatching event:
{
touchPoints : [
]
type : touchStart
}
{
error : {
code : -32602
message : TouchStart and TouchMove must have at least one touch point.
}
id : <number>
sessionId : <string>
}
------- Sequence ------
Dispatching event:
{
touchPoints : [
[0] : {
x : 100
y : 100
}
]
type : touchStart
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 100
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
x : 100
y : 100
}
]
type : touchCancel
}
{
error : {
code : -32602
message : TouchCancel must not have any touch points.
}
id : <number>
sessionId : <string>
}
Dispatching event:
{
touchPoints : [
]
type : touchCancel
}
-----Event-----
type: touchcancel
----Touches----
------- Sequence ------
Dispatching event:
{
touchPoints : [
[0] : {
x : 100
y : 100
}
]
type : touchStart
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 100
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
x : 100
y : 100
}
]
type : touchMove
}
Dispatching event:
{
touchPoints : [
[0] : {
x : 100
y : 100
}
]
type : touchMove
}
Dispatching event:
{
touchPoints : [
]
type : touchEnd
}
-----Event-----
type: touchend
----Touches----
------- Sequence ------
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 100
y : 100
}
]
type : touchStart
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 100
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 100
y : 100
}
]
type : touchMove
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 100
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
id: 1
pageX: 100
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
]
type : touchCancel
}
-----Event-----
type: touchcancel
----Touches----
------- Sequence ------
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 100
y : 100
}
]
type : touchStart
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 100
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 100
y : 100
}
[1] : {
id : <number>
x : 150
y : 100
}
]
type : touchStart
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 100
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
id: 1
pageX: 150
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 100
y : 150
}
[1] : {
id : <number>
x : 150
y : 150
}
]
type : touchMove
}
-----Event-----
type: touchmove
----Touches----
id: 0
pageX: 100
pageY: 150
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
id: 1
pageX: 150
pageY: 150
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
]
type : touchEnd
}
-----Event-----
type: touchend
----Touches----
id: 0
pageX: 150
pageY: 150
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
-----Event-----
type: touchend
----Touches----
------- Sequence ------
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 100
y : 100
}
[1] : {
id : <number>
x : 150
y : 100
}
]
type : touchStart
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 100
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 100
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
id: 1
pageX: 150
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
]
type : touchCancel
}
-----Event-----
type: touchcancel
----Touches----
------- Sequence ------
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 100
y : 100
}
]
type : touchStart
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 100
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 150
y : 100
}
]
type : touchStart
}
-----Event-----
type: touchstart
----Touches----
id: 0
pageX: 100
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
id: 1
pageX: 150
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 100
y : 150
}
]
type : touchMove
}
-----Event-----
type: touchmove
----Touches----
id: 0
pageX: 100
pageY: 150
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
id: 1
pageX: 150
pageY: 100
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
[0] : {
id : <number>
x : 150
y : 100
}
]
type : touchEnd
}
-----Event-----
type: touchend
----Touches----
id: 0
pageX: 100
pageY: 150
radiusX: 1
radiusY: 1
rotationAngle: 0
force: 1
Dispatching event:
{
touchPoints : [
]
type : touchEnd
}
-----Event-----
type: touchend
----Touches----