Skip to content

Commit

Permalink
ignore window tests in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeis committed Oct 2, 2016
1 parent ab76d0f commit a1999c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions java/client/test/org/openqa/selenium/WindowTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public void testCanMaximizeTheWindow() throws InterruptedException {
// though others aren't defined in org.openqa.selenium.Platform).
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
assumeNotLinuxAtSauce();
assumeNotLinuxOnTravis();

changeSizeTo(new Dimension(450, 273));
maximize();
Expand All @@ -156,6 +157,7 @@ public void testCanMaximizeTheWindowFromFrame() throws InterruptedException {
// though others aren't defined in org.openqa.selenium.Platform).
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
assumeNotLinuxAtSauce();
assumeNotLinuxOnTravis();

driver.get(pages.framesetPage);
changeSizeTo(new Dimension(450, 274));
Expand All @@ -172,6 +174,7 @@ public void testCanMaximizeTheWindowFromIframe() throws InterruptedException {
// though others aren't defined in org.openqa.selenium.Platform).
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(ANDROID));
assumeNotLinuxAtSauce();
assumeNotLinuxOnTravis();

driver.get(pages.iframePage);
changeSizeTo(new Dimension(450, 275));
Expand Down Expand Up @@ -279,4 +282,8 @@ private void assumeNotLinuxAtSauce() {
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(LINUX) && SauceDriver.shouldUseSauce());
}

private void assumeNotLinuxOnTravis() {
assumeFalse(TestUtilities.getEffectivePlatform(driver).is(LINUX) && Boolean.valueOf(System.getProperty("TRAVIS", "false")));
}

}

0 comments on commit a1999c4

Please sign in to comment.