We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f24cf74 commit 5efe4f8Copy full SHA for 5efe4f8
java/test/org/openqa/selenium/print/PageSizeTest.java
@@ -26,14 +26,19 @@
26
class PageSizeTest {
27
28
// Defaults assertion
29
- private static final double HEIGHT = 27.94;
30
- private static final double WIDTH = 21.59;
+ private static final double HEIGHT = 27.94; //Size in cm
+ private static final double WIDTH = 21.59; //Size in cm
31
32
@Test
33
void setsDefaultHeightWidth() {
34
PageSize pageSize = new PageSize();
35
36
assertThat(pageSize.getHeight()).isEqualTo(HEIGHT);
37
assertThat(pageSize.getWidth()).isEqualTo(WIDTH);
38
+
39
+ PageSize pageSizeLegal = PageSize.LEGAL;
40
+ assertThat(pageSizeLegal.getHeight()).isEqualTo(HEIGHT);
41
+ assertThat(pageSizeLegal.getWidth()).isEqualTo(WIDTH);
42
43
}
44
0 commit comments