Increase height used in Java window size tests
A recent change in Chrome (https://crrev.com/624785) increased the
minimum window height allowed on Mac to be about 300. This causes some
window size tests to fail (e.g., https://crbug.com/chromedriver/2748).
Increasing the heights to be above 300.
@@ -119,7 +119,7 @@ public void testCanMaximizeTheWindow() {
// though others aren't defined in org.openqa.selenium.Platform).
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
- changeSizeTo(new Dimension(640, 273));
+ changeSizeTo(new Dimension(640, 323));
enlargeBy(WebDriver.Window::maximize);
}
@@ -132,7 +132,7 @@ public void testCanMaximizeTheWindowFromFrame() {
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
driver.get(pages.framesetPage);
- changeSizeTo(new Dimension(640, 274));
+ changeSizeTo(new Dimension(640, 324));
driver.switchTo().frame("fourth");
enlargeBy(WebDriver.Window::maximize);
@@ -147,7 +147,7 @@ public void testCanMaximizeTheWindowFromIframe() {
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
driver.get(pages.iframePage);
- changeSizeTo(new Dimension(640, 275));
+ changeSizeTo(new Dimension(640, 325));
driver.switchTo().frame("iframe1-name");
enlargeBy(WebDriver.Window::maximize);
@@ -161,7 +161,7 @@ public void canFullscreenTheWindow() {
// though others aren't defined in org.openqa.selenium.Platform).
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
- changeSizeTo(new Dimension(640, 273));
+ changeSizeTo(new Dimension(640, 323));
enlargeBy(WebDriver.Window::fullscreen);
}
@@ -175,7 +175,7 @@ public void canFullscreenTheWindowFromFrame() {
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
driver.get(pages.framesetPage);
- changeSizeTo(new Dimension(640, 274));
+ changeSizeTo(new Dimension(640, 324));
driver.switchTo().frame("fourth");
enlargeBy(WebDriver.Window::fullscreen);
@@ -191,7 +191,7 @@ public void canFullscreenTheWindowFromIframe() {
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
driver.get(pages.iframePage);
- changeSizeTo(new Dimension(640, 275));
+ changeSizeTo(new Dimension(640, 325));
driver.switchTo().frame("iframe1-name");
enlargeBy(WebDriver.Window::fullscreen);
