Skip to content

Commit

Permalink
Clean up constructors in the FirefoxDriver used for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Apr 29, 2016
1 parent a076f39 commit dbe638e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import static org.openqa.selenium.testing.DevMode.isInDevMode;
import static org.openqa.selenium.testing.InProject.locate;

import com.google.common.collect.ImmutableMap;
import com.google.common.io.Files;

import org.openqa.selenium.Build;
Expand All @@ -38,11 +39,11 @@ public class SynthesizedFirefoxDriver extends FirefoxDriver {
private static boolean runBuild = true;

public SynthesizedFirefoxDriver() {
super(createTemporaryProfile());
this(new DesiredCapabilities(), new DesiredCapabilities());
}

public SynthesizedFirefoxDriver(FirefoxProfile profile) throws IOException {
super(copyExtensionTo(profile));
this(new DesiredCapabilities(), new DesiredCapabilities(ImmutableMap.of(PROFILE, profile)));
}

public SynthesizedFirefoxDriver(Capabilities desiredCapabilities) {
Expand Down

0 comments on commit dbe638e

Please sign in to comment.