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 +4 -4
- data/lib/watir_visual_diff/screenshot.rb +2 -2
- data/lib/watir_visual_diff/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67a7031d5051451efe56b6f4895f57f9000a2ee2
|
4
|
+
data.tar.gz: 945a2309702821141456d996ad8b4c4240055e6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|