@testim/testim-cli
Version:
Command line interface for running Testing on you CI
31 lines (26 loc) • 573 B
JavaScript
/**
*
* Perform a flick down on an element.
*
* @param {String} selector element to drag on
* @param {Number} duration time (in seconds) to spend performing the drag
*
* @uses mobile/flick
* @type mobile
*
*/
module.exports = function flickDown(selector, duration) {
/*!
* parameter check
*/
if (typeof selector !== 'string') {
selector = null;
}
/*!
* set default duration if not set
*/
if(typeof duration !== 'number') {
duration = 0.3;
}
return this.flick(selector, 0, 0.5, duration);
};