Skip to content

Commit bd8bfa9

Browse files
committed
updating after format.sh run
1 parent 96c3073 commit bd8bfa9

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

java/src/org/openqa/selenium/print/PageSize.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,17 @@ public class PageSize {
2626
private final double height;
2727
private final double width;
2828

29-
// Reference for predefined page size constants: https://www.agooddaytoprint.com/page/paper-size-chart-faq
30-
public static final PageSize ISO_A4 = new PageSize(29.7, 21.0); // ISO_A4 size in cm
31-
public static final PageSize US_LEGAL = new PageSize(35.56, 21.59); // US_LEGAL size in cm
32-
public static final PageSize ANSI_TABLOID = new PageSize(43.18, 27.94); // ANSI_TABLOID size in cm
33-
public static final PageSize US_LETTER = new PageSize(27.94, 21.59); // US_LETTER size in cm
29+
// Reference for predefined page size constants:
30+
// https://www.agooddaytoprint.com/page/paper-size-chart-faq
31+
public static final PageSize ISO_A4 = new PageSize(29.7, 21.0); // ISO_A4 size in cm
32+
public static final PageSize US_LEGAL = new PageSize(35.56, 21.59); // US_LEGAL size in cm
33+
public static final PageSize ANSI_TABLOID = new PageSize(43.18, 27.94); // ANSI_TABLOID size in cm
34+
public static final PageSize US_LETTER = new PageSize(27.94, 21.59); // US_LETTER size in cm
3435

3536
public PageSize() {
3637
// Initialize with defaults. ISO_A4 paper size defaults in cms.
3738
this(ISO_A4.getHeight(), ISO_A4.getWidth());
38-
}
39+
}
3940

4041
public PageSize(double height, double width) {
4142
this.height = height;
@@ -65,9 +66,8 @@ public Map<String, Object> toMap() {
6566
return options;
6667
}
6768

68-
@Override
69-
public String toString() {
69+
@Override
70+
public String toString() {
7071
return "PageSize[width=" + this.getWidth() + ", height=" + this.getHeight() + "]";
7172
}
72-
73-
}
73+
}

java/test/org/openqa/selenium/print/PageSizeTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,38 @@
2525
@Tag("UnitTests")
2626
class PageSizeTest {
2727

28-
@Test
29-
void setsDefaultHeightWidth() {
28+
@Test
29+
void setsDefaultHeightWidth() {
3030
PageSize pageSize = new PageSize();
3131
assertThat(pageSize.getHeight()).isEqualTo(29.7);
3232
assertThat(pageSize.getWidth()).isEqualTo(21.0);
3333
}
3434

35-
@Test
36-
void verifiesPageSizeA4() {
35+
@Test
36+
void verifiesPageSizeA4() {
3737
PageSize pageSize = PageSize.setPageSize(PageSize.ISO_A4);
3838
assertThat(pageSize.getHeight()).isEqualTo(29.7);
3939
assertThat(pageSize.getWidth()).isEqualTo(21.0);
4040
}
4141

42-
@Test
43-
void verifiesPageSizeLegal() {
42+
@Test
43+
void verifiesPageSizeLegal() {
4444
PageSize pageSize = PageSize.setPageSize(PageSize.US_LEGAL);
4545
assertThat(pageSize.getHeight()).isEqualTo(35.56);
4646
assertThat(pageSize.getWidth()).isEqualTo(21.59);
4747
}
4848

49-
@Test
50-
void verifiesPageSizeLetter() {
49+
@Test
50+
void verifiesPageSizeLetter() {
5151
PageSize pageSize = PageSize.setPageSize(PageSize.US_LETTER);
5252
assertThat(pageSize.getHeight()).isEqualTo(27.94);
5353
assertThat(pageSize.getWidth()).isEqualTo(21.59);
5454
}
5555

56-
@Test
57-
void verifiesPageSizeTabloid() {
56+
@Test
57+
void verifiesPageSizeTabloid() {
5858
PageSize pageSize = PageSize.setPageSize(PageSize.ANSI_TABLOID);
5959
assertThat(pageSize.getHeight()).isEqualTo(43.18);
6060
assertThat(pageSize.getWidth()).isEqualTo(27.94);
6161
}
62-
}
62+
}

0 commit comments

Comments
 (0)