Skip to content

Commit a9207d1

Browse files
Clean code
1 parent 3d0c356 commit a9207d1

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

src/main/java/com/assertthat/selenium_shutterbug/core/Snapshot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public T withCroppedThumbnail(String path, String name, double scale, double cr
9898
FileUtil.writeImage(thumbnailImage, EXTENSION, thumbnailFile);
9999
return self();
100100
}
101-
101+
102102
/**
103103
* Generate cropped thumbnail of the original screenshot.
104104
* Will save different thumbnails depends on when it was called in the chain.

src/main/java/com/assertthat/selenium_shutterbug/utils/image/UnableToCompareImagesException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Created by Glib_Briia on 25/06/2016.
1010
*/
1111
public class UnableToCompareImagesException extends RuntimeException {
12+
1213
public UnableToCompareImagesException() {
1314
super();
1415
}

src/main/java/com/assertthat/selenium_shutterbug/utils/web/ElementOutsideViewportException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Created by Glib_Briia on 10/07/2016.
55
*/
66
public class ElementOutsideViewportException extends RuntimeException {
7+
78
public ElementOutsideViewportException() {
89
super();
910
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
({width: Math.max(window.innerWidth,document.body.scrollWidth,document.documentElement.scrollWidth)|0,
2-
height: Math.max(window.innerHeight,document.body.scrollHeight,document.documentElement.scrollHeight)|0,
3-
deviceScaleFactor: window.devicePixelRatio || 1,mobile: typeof window.orientation !== 'undefined'})
1+
({
2+
width: Math.max(window.innerWidth, document.body.scrollWidth, document.documentElement.scrollWidth) | 0,
3+
height: Math.max(window.innerHeight, document.body.scrollHeight, document.documentElement.scrollHeight) | 0,
4+
deviceScaleFactor: window.devicePixelRatio || 1, mobile: typeof window.orientation !== 'undefined'
5+
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
var rect = arguments[0].getBoundingClientRect();
2-
return [ '' + parseInt(rect.left), '' + parseInt(rect.top), '' + parseInt(rect.width), '' + parseInt(rect.height) ]
1+
var rect = arguments[0].getBoundingClientRect();
2+
return ['' + parseInt(rect.left), '' + parseInt(rect.top), '' + parseInt(rect.width), '' + parseInt(rect.height)];

0 commit comments

Comments
 (0)