lib/capybara/screenshot/diff/image_compare.rb in capybara-screenshot-diff-0.10.1 vs lib/capybara/screenshot/diff/image_compare.rb in capybara-screenshot-diff-0.10.2
- old
+ new
@@ -76,9 +76,13 @@
old_img = images.first
new_img = images.last
if sizes_changed?(old_img, new_img)
save_images(@annotated_new_file_name, new_img, @annotated_old_file_name, old_img)
+ @left = 0
+ @top = 0
+ @right = old_img.dimension.width - 1
+ @bottom = old_img.dimension.height - 1
return true
end
return not_different if old_img.pixels == new_img.pixels