Class: DotDiff::Comparible::PageComparer
- Inherits:
-
Base
- Object
- Base
- DotDiff::Comparible::PageComparer
show all
- Defined in:
- lib/dotdiff/comparible/page_comparer.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, run
Instance Method Details
#new_image_path ⇒ Object
17
18
19
|
# File 'lib/dotdiff/comparible/page_comparer.rb', line 17
def new_image_path
snapshot.fullscreen_file
end
|
#run ⇒ Object
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/dotdiff/comparible/page_comparer.rb', line 6
def run
snapshot.capture_from_browser(true)
if !File.exist?(snapshot.basefile)
snapshot.resave_fullscreen_file
[true, snapshot.basefile]
else
compare(snapshot.fullscreen_file)
end
end
|