Skip to content

Commit 5efe4f8

Browse files
committed
Updating PageSizeTest to verify new PageSize constants and functionality
1 parent f24cf74 commit 5efe4f8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@
2626
class PageSizeTest {
2727

2828
// Defaults assertion
29-
private static final double HEIGHT = 27.94;
30-
private static final double WIDTH = 21.59;
29+
private static final double HEIGHT = 27.94; //Size in cm
30+
private static final double WIDTH = 21.59; //Size in cm
3131

3232
@Test
3333
void setsDefaultHeightWidth() {
3434
PageSize pageSize = new PageSize();
3535

3636
assertThat(pageSize.getHeight()).isEqualTo(HEIGHT);
3737
assertThat(pageSize.getWidth()).isEqualTo(WIDTH);
38+
39+
PageSize pageSizeLegal = PageSize.LEGAL;
40+
assertThat(pageSizeLegal.getHeight()).isEqualTo(HEIGHT);
41+
assertThat(pageSizeLegal.getWidth()).isEqualTo(WIDTH);
42+
3843
}
3944
}

0 commit comments

Comments
 (0)