watir_visual_diff 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0d4e14db32cd63753957825e09c4878cbb6379b
4
- data.tar.gz: 9891cdde974b586eebe7e09856db92193531f7c0
3
+ metadata.gz: 67a7031d5051451efe56b6f4895f57f9000a2ee2
4
+ data.tar.gz: 945a2309702821141456d996ad8b4c4240055e6c
5
5
  SHA512:
6
- metadata.gz: e0a841900d13f8981982ec246a3a836d8eedb8d0f551d3dc776623075dda7917c7392924adb116ff505c3100a5c844f6ed9eead850542a696a8e2d83fc03a0eb
7
- data.tar.gz: 1dc2f71f9a95a6e13737890f5900b0471ca6c2f217235285cd8b2f4bee47302fd2231a86e86f1b96ed6fba9366ea9217761e55418005374a0265fa35cc5205dd
6
+ metadata.gz: fd5c1d3b5379c47fe45a832e53e15eb4705aff3618e95672635041076dae8b4faec66c9924562d8d3c6636ba720ee34ddf9174ab64d2ff242ecf41380bdc5adb
7
+ data.tar.gz: d7545d1b9f1232ccb214400a869d33a6d3a39f6a536876f6056662ed72938b36af766393af51743aab07e19fce671034352fcb1210e5257010bbcb25872b9aa8
@@ -3,7 +3,7 @@ require 'oily_png'
3
3
  module Watir
4
4
  class Element
5
5
  def screenshot
6
- ChunkyPNG::Image.from_blob(browser.screenshot.png).crop!(wd.location.x.to_i + 1, wd.location.y.to_i + 1, wd.size.width, wd.size.height)
6
+ ChunkyPNG::Image.from_blob(browser.screenshot.png).crop!(wd.location.x, wd.location.y, wd.size.width, wd.size.height)
7
7
  end
8
8
  end
9
- end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module WatirVisualDiff # :nodoc:
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir_visual_diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Commu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-14 00:00:00.000000000 Z
11
+ date: 2017-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png