Comparing version 1.0.13 to 1.0.14
Changelog | ||
========= | ||
V1.0.14 - Merged PR #30 to add extra variables to formatImageName (credit to koningskristof) | ||
- Merged PR #31 to fix constructor JSdocs (credit to abierbaum) (13/10/2016) | ||
v1.0.13 - Added auto resize option (13/09/2016) | ||
@@ -4,0 +7,0 @@ |
@@ -17,4 +17,4 @@ 'use strict'; | ||
* @param {string} options.basePath Path to screenshots folder | ||
* @param {string} options.width Width of browser | ||
* @param {string} options.height Height of browser | ||
* @param {int} options.width Width of browser | ||
* @param {int} options.height Height of browser | ||
* @param {boolean} options.autoResize Automatically resize the browser | ||
@@ -64,2 +64,4 @@ * @param {string} options.formatImageOptions Custom variables for Image Name | ||
this.deviceName = _.capabilities.deviceName ? camelCase(_.capabilities.deviceName) : ''; | ||
this.name = _.capabilities.name ? _.capabilities.name : ''; | ||
this.logName = _.capabilities.logName ? _.capabilities.logName : ''; | ||
@@ -125,2 +127,4 @@ if (_.framework !== 'custom') { | ||
'deviceName': this.deviceName, | ||
'name': this.name, | ||
'logName': this.logName, | ||
'dpr': this.devicePixelRatio, | ||
@@ -127,0 +131,0 @@ 'width': this.width, |
{ | ||
"name": "pix-diff", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "Protractor plugin for image comparison", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -177,2 +177,5 @@ Pix-Diff | ||
* ```dpr``` The device pixel ratio | ||
* ```name``` The name from capabilities | ||
* ```logName``` The logName from capabilities | ||
* ```deviceName``` The deviceName from capabilities | ||
@@ -179,0 +182,0 @@ Images specified via name in the spec method will be selected according to the browsers current resolution. That is to say that multiple images can share the same name differentated by resolution. |
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
47283
810
221