]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix UIAutoGeneratedStyleNameTest. (#14670)
authorSauli Tähkäpää <sauli@vaadin.com>
Mon, 22 Sep 2014 11:35:10 +0000 (14:35 +0300)
committerVaadin Code Review <review@vaadin.com>
Tue, 23 Sep 2014 06:27:18 +0000 (06:27 +0000)
Change-Id: I5d6cb7df9989e5cf5b5e1e55a75b1a03fbab8050

uitest/src/com/vaadin/tests/components/ui/UIAutoGeneratedStyleNameTest.java

index 48d4c406f7cccd45b8c418d1f38cbbdbc210436a..73e0a7f6b93cd9bd11ceb1022edf5bdb8ab5e070 100644 (file)
  */
 package com.vaadin.tests.components.ui;
 
-import java.util.Collections;
-import java.util.List;
-import java.util.Locale;
-
+import com.vaadin.tests.tb3.MultiBrowserTest;
 import org.junit.Assert;
 import org.junit.Test;
 import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
 import org.openqa.selenium.WebElement;
-import org.openqa.selenium.phantomjs.PhantomJSDriver;
-import org.openqa.selenium.remote.DesiredCapabilities;
 
-import com.vaadin.testbench.TestBench;
-import com.vaadin.tests.tb3.MultiBrowserTest;
+import java.util.Locale;
 
 /**
  * Test to check auto-generated style name for UI div and overlays div.
@@ -59,29 +52,4 @@ public class UIAutoGeneratedStyleNameTest extends MultiBrowserTest {
     private boolean containsStyle(WebElement element, String style) {
         return element.getAttribute("class").contains(style);
     }
-
-    @Override
-    protected void setupDriver() throws Exception {
-        System.setProperty("phantomjs.binary.path",
-                "C:\\tmp\\phantom\\phantomjs.exe");
-        WebDriver dr = TestBench.createDriver(new PhantomJSDriver());
-        setDriver(dr);
-    }
-
-    @Override
-    protected String getScreenshotDirectory() {
-        return "C:\\tmp\\a";
-    }
-
-    @Override
-    protected void openTestURL() {
-        driver.get("http://localhost:8080/vaadin/run/UIAutoGeneratedStyleName");
-    }
-
-    @Override
-    public List<DesiredCapabilities> getBrowsersToTest() {
-        return Collections.singletonList(Browser.FIREFOX
-                .getDesiredCapabilities());
-    }
-
 }