Skip to content

Commit

Permalink
No logical changes: Fix deprecation warnings and delete unusued code
Browse files Browse the repository at this point in the history
In the `FirefoxDriverTest`
  • Loading branch information
shs96c committed Mar 8, 2017
1 parent b526bd5 commit a509aa8
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.testing.NeedsFreshDriver;
import org.openqa.selenium.ParallelTestRunner;
import org.openqa.selenium.ParallelTestRunner.Worker;
import org.openqa.selenium.WebDriver;
Expand All @@ -58,6 +57,7 @@
import org.openqa.selenium.testing.DevMode;
import org.openqa.selenium.testing.Ignore;
import org.openqa.selenium.testing.JUnit4TestBase;
import org.openqa.selenium.testing.NeedsFreshDriver;
import org.openqa.selenium.testing.NeedsLocalEnvironment;
import org.openqa.selenium.testing.drivers.SauceDriver;
import org.openqa.selenium.testing.drivers.SynthesizedFirefoxDriver;
Expand Down Expand Up @@ -405,13 +405,6 @@ public void shouldBeAbleToPassCommandLineOptions() {
}
}

private void sleepBecauseWindowsTakeTimeToOpen() {
try {
sleep(1000);
} catch (InterruptedException e) {
fail("Interrupted");
}
}

@Test
public void canBlockInvalidSslCertificates() {
Expand Down Expand Up @@ -654,7 +647,8 @@ private WebDriver newFirefoxDriver(FirefoxProfile profile) {
try {
return new SynthesizedFirefoxDriver(profile);
} catch (Exception e) {
throw Throwables.propagate(e);
Throwables.throwIfUnchecked(e);
throw new RuntimeException(e);
}
}
return new FirefoxDriver(profile);
Expand Down

0 comments on commit a509aa8

Please sign in to comment.