Module: VisualMatcher
- Includes:
- ChunkyPNG::Color, DiffResult
- Defined in:
- lib/visual_matcher.rb,
lib/visual_matcher/version.rb
Defined Under Namespace
Classes: SizesMismatchError
Constant Summary collapse
- VERSION =
'0.1.0'.freeze
Class Method Summary collapse
Methods included from DiffResult
Class Method Details
.execute(baseline, current_screen, acceptant_criteria) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/visual_matcher.rb', line 15 def self.execute(baseline, current_screen, acceptant_criteria) return if baseline.nil? return if current_screen.nil? return if acceptant_criteria.nil? Matcher.new.compare_screens(Image.load_images(baseline, current_screen), acceptant_criteria) end |