marionette-client
Advanced tools
Comparing version 0.14.0 to 0.15.0
@@ -291,3 +291,3 @@ /** | ||
*/ | ||
size: function displayed(callback) { | ||
size: function size(callback) { | ||
var cmd = { | ||
@@ -297,4 +297,25 @@ type: 'getElementSize' | ||
return this._sendCommand(cmd, 'value', callback); | ||
}, | ||
/** | ||
* Returns the dictionary with x and y locatioin of an element. | ||
* | ||
* The returned location will be in the following format: | ||
* | ||
* // returned in callback or result of this call in the sync driver. | ||
* { | ||
* x: Number, | ||
* y: Number | ||
* } | ||
* | ||
* @method location | ||
* @param {Function} callback [Error err, Object location]. | ||
* @return {Object} self. | ||
*/ | ||
location: function location(callback) { | ||
var cmd = { | ||
type: 'getElementPosition' | ||
}; | ||
return this._sendCommand(cmd, 'value', callback); | ||
} | ||
}; | ||
@@ -301,0 +322,0 @@ |
{ | ||
"name": "marionette-client", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"main": "lib/marionette/index", | ||
@@ -5,0 +5,0 @@ "description": "Marionette Javascript Client", |
@@ -8,3 +8,3 @@ # Marionette JS Client | ||
- [Api Docs](http://lightsofapollo.github.com/marionette_js_client/api-docs/) | ||
- [Api Docs](http://mozilla-b2g.github.com/marionette_js_client/api-docs/) | ||
@@ -11,0 +11,0 @@ ## Hacking |
@@ -5,3 +5,3 @@ { | ||
"version": "0.5.0", | ||
"url": "https://github.com/lightsofapollo/marionette_js_client", | ||
"url": "https://github.com/mozilla-b2g/marionette_js_client", | ||
"logo": "none", | ||
@@ -8,0 +8,0 @@ "options": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2
87865
25
2890