UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

1 lines 26.6 kB
Ext.data.JsonP.Siesta_Test_UserAgent_Touch({"tagname":"class","name":"Siesta.Test.UserAgent.Touch","autodetected":{},"files":[{"filename":"Touch.js","href":"Touch.html#Siesta-Test-UserAgent-Touch"}],"members":[{"name":"doubleTap","tagname":"method","owner":"Siesta.Test.UserAgent.Touch","id":"method-doubleTap","meta":{}},{"name":"longPress","tagname":"method","owner":"Siesta.Test.UserAgent.Touch","id":"method-longPress","meta":{}},{"name":"movePointerBy","tagname":"method","owner":"Siesta.Test.UserAgent.Touch","id":"method-movePointerBy","meta":{}},{"name":"movePointerTo","tagname":"method","owner":"Siesta.Test.UserAgent.Touch","id":"method-movePointerTo","meta":{}},{"name":"pinch","tagname":"method","owner":"Siesta.Test.UserAgent.Touch","id":"method-pinch","meta":{}},{"name":"swipe","tagname":"method","owner":"Siesta.Test.UserAgent.Touch","id":"method-swipe","meta":{}},{"name":"tap","tagname":"method","owner":"Siesta.Test.UserAgent.Touch","id":"method-tap","meta":{}},{"name":"touchDragBy","tagname":"method","owner":"Siesta.Test.UserAgent.Touch","id":"method-touchDragBy","meta":{}},{"name":"touchDragTo","tagname":"method","owner":"Siesta.Test.UserAgent.Touch","id":"method-touchDragTo","meta":{}},{"name":"touchEnd","tagname":"method","owner":"Siesta.Test.UserAgent.Touch","id":"method-touchEnd","meta":{}},{"name":"touchStart","tagname":"method","owner":"Siesta.Test.UserAgent.Touch","id":"method-touchStart","meta":{}}],"alternateClassNames":[],"aliases":{},"id":"class-Siesta.Test.UserAgent.Touch","component":false,"superclasses":[],"subclasses":[],"mixedInto":["Siesta.Test.Browser"],"mixins":[],"parentMixins":[],"requires":[],"uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Mixed into</h4><div class='dependency'><a href='#!/api/Siesta.Test.Browser' rel='Siesta.Test.Browser' class='docClass'>Siesta.Test.Browser</a></div><h4>Files</h4><div class='dependency'><a href='source/Touch.html#Siesta-Test-UserAgent-Touch' target='_blank'>Touch.js</a></div></pre><div class='doc-contents'><p>This is a mixin, providing the touch events simulation functionality.</p>\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-method'>Methods</h3><div class='subsection'><div id='method-doubleTap' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.UserAgent.Touch'>Siesta.Test.UserAgent.Touch</span><br/><a href='source/Touch.html#Siesta-Test-UserAgent-Touch-method-doubleTap' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.UserAgent.Touch-method-doubleTap' class='name expandable'>doubleTap</a>( <span class='pre'>target, [callback], [scope], [options], [offset]</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>This method double taps the passed target, which can be of several different types, see Siesta.Test.ActionTarget ...</div><div class='long'><p>This method double taps the passed target, which can be of several different types, see <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a></p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>target</span> : <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a><div class='sub-desc'><p>Target for this action</p>\n</div></li><li><span class='pre'>callback</span> : Function (optional)<div class='sub-desc'><p>A function to call after action.</p>\n</div></li><li><span class='pre'>scope</span> : Object (optional)<div class='sub-desc'><p>The scope for the callback</p>\n</div></li><li><span class='pre'>options</span> : Object (optional)<div class='sub-desc'><p>Any optionsthat will be used when simulating the event. For information about possible\nconfig options, please see: <a href=\"https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent\">https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent</a></p>\n</div></li><li><span class='pre'>offset</span> : Array (optional)<div class='sub-desc'><p>An X,Y offset relative to the target. Example: [20, 20] for 20px or [\"50%\", \"100%-2\"] to click in the center horizontally and 2px from the bottom edge.</p>\n</div></li></ul></div></div></div><div id='method-longPress' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.UserAgent.Touch'>Siesta.Test.UserAgent.Touch</span><br/><a href='source/Touch.html#Siesta-Test-UserAgent-Touch-method-longPress' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.UserAgent.Touch-method-longPress' class='name expandable'>longPress</a>( <span class='pre'>target, [callback], [scope], [options], [offset]</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>This performs a long press on the passed target, which can be of several different types, see Siesta.Test.ActionTarget ...</div><div class='long'><p>This performs a long press on the passed target, which can be of several different types, see <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a></p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>target</span> : <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a><div class='sub-desc'><p>Target for this action</p>\n</div></li><li><span class='pre'>callback</span> : Function (optional)<div class='sub-desc'><p>A function to call after action.</p>\n</div></li><li><span class='pre'>scope</span> : Object (optional)<div class='sub-desc'><p>The scope for the callback</p>\n</div></li><li><span class='pre'>options</span> : Object (optional)<div class='sub-desc'><p>Any optionsthat will be used when simulating the event. For information about possible\nconfig options, please see: <a href=\"https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent\">https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent</a></p>\n</div></li><li><span class='pre'>offset</span> : Array (optional)<div class='sub-desc'><p>An X,Y offset relative to the target. Example: [20, 20] for 20px or [\"50%\", \"100%-2\"] to click in the center horizontally and 2px from the bottom edge.</p>\n</div></li></ul></div></div></div><div id='method-movePointerBy' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.UserAgent.Touch'>Siesta.Test.UserAgent.Touch</span><br/><a href='source/Touch.html#Siesta-Test-UserAgent-Touch-method-movePointerBy' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.UserAgent.Touch-method-movePointerBy' class='name expandable'>movePointerBy</a>( <span class='pre'>delta, callback, [scope], [options]</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>This method will simulate moving the pointer/finger by the passed distance. ...</div><div class='long'><p>This method will simulate moving the pointer/finger by the passed distance.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>delta</span> : Array<div class='sub-desc'><p>The amount to drag from the source coordinate, expressed as [ x, y ]. E.g. [ 50, 10 ] will drag 50px to the right and 10px down.</p>\n</div></li><li><span class='pre'>callback</span> : Function<div class='sub-desc'><p>A function to call after the drag operation is completed.</p>\n</div></li><li><span class='pre'>scope</span> : Object (optional)<div class='sub-desc'><p>the scope for the callback</p>\n</div></li><li><span class='pre'>options</span> : Object (optional)<div class='sub-desc'><p>Any optionsthat will be used when simulating the event. For information about possible\nconfig options, please see: <a href=\"https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent\">https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent</a></p>\n</div></li></ul></div></div></div><div id='method-movePointerTo' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.UserAgent.Touch'>Siesta.Test.UserAgent.Touch</span><br/><a href='source/Touch.html#Siesta-Test-UserAgent-Touch-method-movePointerTo' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.UserAgent.Touch-method-movePointerTo' class='name expandable'>movePointerTo</a>( <span class='pre'>target, callback, [scope], [options], [offset]</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>This method will simulate a move the pointer/finger to the passed target. ...</div><div class='long'><p>This method will simulate a move the pointer/finger to the passed target.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>target</span> : <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a><div class='sub-desc'><p><a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a> value for the drag end point</p>\n</div></li><li><span class='pre'>callback</span> : Function<div class='sub-desc'><p>A function to call after the drag operation is completed.</p>\n</div></li><li><span class='pre'>scope</span> : Object (optional)<div class='sub-desc'><p>the scope for the callback</p>\n</div></li><li><span class='pre'>options</span> : Object (optional)<div class='sub-desc'><p>Any optionsthat will be used when simulating the event. For information about possible\nconfig options, please see: <a href=\"https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent\">https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent</a></p>\n</div></li><li><span class='pre'>offset</span> : Array (optional)<div class='sub-desc'><p>An X,Y offset relative to the target. Example: [20, 20] for 20px or [\"50%\", \"100%-2\"] to point in the center horizontally and 2px from the bottom edge.</p>\n</div></li></ul></div></div></div><div id='method-pinch' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.UserAgent.Touch'>Siesta.Test.UserAgent.Touch</span><br/><a href='source/Touch.html#Siesta-Test-UserAgent-Touch-method-pinch' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.UserAgent.Touch-method-pinch' class='name expandable'>pinch</a>( <span class='pre'>target1, target2, scale, callback, scope, [options], offset1, offset2</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>This method performs a pinch between the two specified points. ...</div><div class='long'><p>This method performs a pinch between the two specified points. It draws a line between the specified points and then moves 2 touches along that line,\nso that the final distance between the touches becomes <code>scale * original distance</code>.</p>\n\n<p>This method can be called either in the full form with 2 different targets:</p>\n\n<pre><code>t.pinch(\"#grid &gt; .col1\", \"#grid &gt; .col2\", 3, function () { ... })\n</code></pre>\n\n<p>or, in the short form, where the 2nd target argument is omitted:</p>\n\n<pre><code>t.pinch(\"#grid &gt; .col1\", 3, function () { ... })\n</code></pre>\n\n<p>In the latter form, <code>target2</code> is considered to be the same as <code>target1</code>.</p>\n\n<p>If <code>target1</code> and <code>target2</code> are the same, and no offsets are provided, offsets are set to the following values:</p>\n\n<pre><code>offset1 = [ '25%', '50%' ]\noffset2 = [ '75%', '50%' ]\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>target1</span> : <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a><div class='sub-desc'><p>First point for pinch</p>\n</div></li><li><span class='pre'>target2</span> : <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a><div class='sub-desc'><p>Second point for pinch. Can be omitted, in this case both points will belong to <code>target1</code></p>\n</div></li><li><span class='pre'>scale</span> : Number<div class='sub-desc'><p>The multiplier for a final distance between the points</p>\n</div></li><li><span class='pre'>callback</span> : Function<div class='sub-desc'><p>A function to call after the pinch has completed</p>\n</div></li><li><span class='pre'>scope</span> : Object<div class='sub-desc'><p>A scope for the <code>callback</code></p>\n</div></li><li><span class='pre'>options</span> : Object (optional)<div class='sub-desc'><p>Any optionsthat will be used when simulating the event. For information about possible\nconfig options, please see: <a href=\"https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent\">https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent</a></p>\n</div></li><li><span class='pre'>offset1</span> : Array<div class='sub-desc'><p>An X,Y offset relative to the target1. Example: [20, 20] for 20px or [\"50%\", \"100%-2\"]\nfor the point in the center horizontally and 2px from the bottom edge.</p>\n</div></li><li><span class='pre'>offset2</span> : Array<div class='sub-desc'><p>An X,Y offset relative to the target1. Example: [20, 20] for 20px or [\"50%\", \"100%-2\"]\nfor the point in the center horizontally and 2px from the bottom edge.</p>\n</div></li></ul></div></div></div><div id='method-swipe' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.UserAgent.Touch'>Siesta.Test.UserAgent.Touch</span><br/><a href='source/Touch.html#Siesta-Test-UserAgent-Touch-method-swipe' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.UserAgent.Touch-method-swipe' class='name expandable'>swipe</a>( <span class='pre'>target, direction, callback, [scope], [options]</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>This method will simulate a swipe operation between either two points or on a single DOM element. ...</div><div class='long'><p>This method will simulate a swipe operation between either two points or on a single DOM element.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>target</span> : <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a><div class='sub-desc'><p>Target for this action</p>\n</div></li><li><span class='pre'>direction</span> : String<div class='sub-desc'><p>Either 'left', 'right', 'up' or 'down'</p>\n</div></li><li><span class='pre'>callback</span> : Function<div class='sub-desc'><p>A function to call after the swing operation is completed</p>\n</div></li><li><span class='pre'>scope</span> : Object (optional)<div class='sub-desc'><p>the scope for the callback</p>\n</div></li><li><span class='pre'>options</span> : Object (optional)<div class='sub-desc'><p>Any options that will be used when simulating the event. For information about possible\nconfig options, please see: <a href=\"https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent\">https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent</a></p>\n</div></li></ul></div></div></div><div id='method-tap' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.UserAgent.Touch'>Siesta.Test.UserAgent.Touch</span><br/><a href='source/Touch.html#Siesta-Test-UserAgent-Touch-method-tap' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.UserAgent.Touch-method-tap' class='name expandable'>tap</a>( <span class='pre'>target, [callback], [scope], [options], [offset]</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>This method taps the passed target, which can be of several different types, see Siesta.Test.ActionTarget ...</div><div class='long'><p>This method taps the passed target, which can be of several different types, see <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a></p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>target</span> : <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a><div class='sub-desc'><p>Target for this action</p>\n</div></li><li><span class='pre'>callback</span> : Function (optional)<div class='sub-desc'><p>A function to call after action.</p>\n</div></li><li><span class='pre'>scope</span> : Object (optional)<div class='sub-desc'><p>The scope for the callback</p>\n</div></li><li><span class='pre'>options</span> : Object (optional)<div class='sub-desc'><p>Any options that will be used when simulating the event. For information about possible\nconfig options, please see: <a href=\"https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent\">https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent</a></p>\n</div></li><li><span class='pre'>offset</span> : Array (optional)<div class='sub-desc'><p>An X,Y offset relative to the target. Example: [20, 20] for 20px or\n[\"50%\", \"100%-2\"] to click in the center horizontally and 2px from the bottom edge.</p>\n</div></li></ul></div></div></div><div id='method-touchDragBy' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.UserAgent.Touch'>Siesta.Test.UserAgent.Touch</span><br/><a href='source/Touch.html#Siesta-Test-UserAgent-Touch-method-touchDragBy' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.UserAgent.Touch-method-touchDragBy' class='name expandable'>touchDragBy</a>( <span class='pre'>source, delta, callback, [scope], [options], dragOnly, [offset]</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>This method will simulate a drag and drop operation from a point (or DOM element) and move by a delta. ...</div><div class='long'><p>This method will simulate a drag and drop operation from a point (or DOM element) and move by a delta.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>source</span> : <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a><div class='sub-desc'><p><a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a> value as the drag starting point</p>\n</div></li><li><span class='pre'>delta</span> : Array<div class='sub-desc'><p>The amount to drag from the source coordinate, expressed as [ x, y ]. E.g. [ 50, 10 ] will drag 50px to the right and 10px down.</p>\n</div></li><li><span class='pre'>callback</span> : Function<div class='sub-desc'><p>A function to call after the drag operation is completed.</p>\n</div></li><li><span class='pre'>scope</span> : Object (optional)<div class='sub-desc'><p>the scope for the callback</p>\n</div></li><li><span class='pre'>options</span> : Object (optional)<div class='sub-desc'><p>Any optionsthat will be used when simulating the event. For information about possible\nconfig options, please see: <a href=\"https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent\">https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent</a></p>\n</div></li><li><span class='pre'>dragOnly</span> : Boolean<div class='sub-desc'><p>true to skip the mouseup and not finish the drop operation.</p>\n</div></li><li><span class='pre'>offset</span> : Array (optional)<div class='sub-desc'><p>An X,Y offset relative to the target. Example: [20, 20] for 20px or [\"50%\", \"100%-2\"] to click in the center horizontally and 2px from the bottom edge.</p>\n</div></li></ul></div></div></div><div id='method-touchDragTo' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.UserAgent.Touch'>Siesta.Test.UserAgent.Touch</span><br/><a href='source/Touch.html#Siesta-Test-UserAgent-Touch-method-touchDragTo' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.UserAgent.Touch-method-touchDragTo' class='name expandable'>touchDragTo</a>( <span class='pre'>source, target, callback, [scope], [options], dragOnly, [sourceOffset], [targetOffset]</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>This method will simulate a drag and drop operation between either two points or two DOM elements. ...</div><div class='long'><p>This method will simulate a drag and drop operation between either two points or two DOM elements.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>source</span> : <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a><div class='sub-desc'><p><a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a> value for the drag starting point</p>\n</div></li><li><span class='pre'>target</span> : <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a><div class='sub-desc'><p><a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a> value for the drag end point</p>\n</div></li><li><span class='pre'>callback</span> : Function<div class='sub-desc'><p>A function to call after the drag operation is completed.</p>\n</div></li><li><span class='pre'>scope</span> : Object (optional)<div class='sub-desc'><p>the scope for the callback</p>\n</div></li><li><span class='pre'>options</span> : Object (optional)<div class='sub-desc'><p>Any optionsthat will be used when simulating the event. For information about possible\nconfig options, please see: <a href=\"https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent\">https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent</a></p>\n</div></li><li><span class='pre'>dragOnly</span> : Boolean<div class='sub-desc'><p>true to skip the mouseup and not finish the drop operation.</p>\n</div></li><li><span class='pre'>sourceOffset</span> : Array (optional)<div class='sub-desc'><p>An X,Y offset relative to the source. Example: [20, 20] for 20px or [\"50%\", \"100%-2\"] to click in the center horizontally and 2px from the bottom edge.</p>\n</div></li><li><span class='pre'>targetOffset</span> : Array (optional)<div class='sub-desc'><p>An X,Y offset relative to the target. Example: [20, 20] for 20px or [\"50%\", \"100%-2\"] to click in the center horizontally and 2px from the bottom edge.</p>\n</div></li></ul></div></div></div><div id='method-touchEnd' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.UserAgent.Touch'>Siesta.Test.UserAgent.Touch</span><br/><a href='source/Touch.html#Siesta-Test-UserAgent-Touch-method-touchEnd' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.UserAgent.Touch-method-touchEnd' class='name expandable'>touchEnd</a>( <span class='pre'>callback</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>This method simulates a touchend for a single active touch ...</div><div class='long'><p>This method simulates a <code>touchend</code> for a single active touch</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>callback</span> : Object<div class='sub-desc'></div></li></ul></div></div></div><div id='method-touchStart' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Siesta.Test.UserAgent.Touch'>Siesta.Test.UserAgent.Touch</span><br/><a href='source/Touch.html#Siesta-Test-UserAgent-Touch-method-touchStart' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Siesta.Test.UserAgent.Touch-method-touchStart' class='name expandable'>touchStart</a>( <span class='pre'>target, [callback], [scope], [options], [offset]</span> )<span class=\"signature\"></span></div><div class='description'><div class='short'>This method simulates a touchstart for the passed target, first waiting to make sure target exists and is reachable ...</div><div class='long'><p>This method simulates a <code>touchstart</code> for the passed target, first waiting to make sure target exists and is reachable</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>target</span> : <a href=\"#!/api/Siesta.Test.ActionTarget\" rel=\"Siesta.Test.ActionTarget\" class=\"docClass\">Siesta.Test.ActionTarget</a><div class='sub-desc'><p>Target for this action</p>\n</div></li><li><span class='pre'>callback</span> : Function (optional)<div class='sub-desc'><p>A function to call after action.</p>\n</div></li><li><span class='pre'>scope</span> : Object (optional)<div class='sub-desc'><p>The scope for the callback</p>\n</div></li><li><span class='pre'>options</span> : Object (optional)<div class='sub-desc'><p>Any options that will be used when simulating the event. For information about possible\nconfig options, please see: <a href=\"https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent\">https://developer.mozilla.org/en-US/docs/DOM/event.initMouseEvent</a></p>\n</div></li><li><span class='pre'>offset</span> : Array (optional)<div class='sub-desc'><p>An X,Y offset relative to the target. Example: [20, 20] for 20px or\n[\"50%\", \"100%-2\"] to click in the center horizontally and 2px from the bottom edge.</p>\n</div></li></ul></div></div></div></div></div></div></div>","meta":{}});