marionette-client
Advanced tools
Comparing version 0.13.2 to 0.13.3
@@ -6,18 +6,2 @@ /** | ||
/** | ||
* Default for tap's x offset. | ||
* | ||
* @type Number | ||
* @private | ||
*/ | ||
var TAP_DEFAULT_X = 0; | ||
/** | ||
* Default for tap's y offset. | ||
* | ||
* @type Number | ||
* @private | ||
*/ | ||
var TAP_DEFAULT_Y = 0; | ||
/** | ||
* Creates an element reference | ||
@@ -81,3 +65,3 @@ * based on an id and a client instance. | ||
findElement: function findElement(query, method, callback) { | ||
var result = this.client.findElement(query, method, this.id, callback); | ||
var result = this.client.findElement(query, method, this.id, callback); | ||
@@ -215,6 +199,7 @@ if (this.client.isSync) { | ||
* Taps an element at given x and y coordinates. | ||
* If no offsets are given, it will be tapped at the center of the element. | ||
* | ||
* @method tap | ||
* @param {Number} [x=0] offset for the tap. | ||
* @param {Number} [y=0] offset for the tap. | ||
* @param {Number} [x] offset for the tap. | ||
* @param {Number} [y] offset for the tap. | ||
* @param {Function} [callback] [Error err] | ||
@@ -224,7 +209,11 @@ */ | ||
var cmd = { | ||
type: 'singleTap', | ||
x: x || TAP_DEFAULT_X, | ||
y: y || TAP_DEFAULT_Y | ||
type: 'singleTap' | ||
}; | ||
if (typeof(x) === 'number' && | ||
typeof(y) === 'number') { | ||
cmd.x = x; | ||
cmd.y = y; | ||
} | ||
return this._sendCommand(cmd, 'value', callback); | ||
@@ -231,0 +220,0 @@ }, |
{ | ||
"name": "marionette-client", | ||
"version": "0.13.2", | ||
"version": "0.13.3", | ||
"main": "lib/marionette/index", | ||
@@ -5,0 +5,0 @@ "description": "Marionette Javascript Client", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85521
2821