diff options
author | Sauli Tähkäpää <sauli@vaadin.com> | 2014-09-22 14:35:10 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-09-23 06:27:18 +0000 |
commit | 9d0812f7425deff6ee5437993e08eeab7d4a84a0 (patch) | |
tree | 6f8c3288b91f4fb6c93b48c345af14604985d6c3 /uitest | |
parent | c7467f21908e01a68f1f948522a15d9974417ad6 (diff) | |
download | vaadin-framework-9d0812f7425deff6ee5437993e08eeab7d4a84a0.tar.gz vaadin-framework-9d0812f7425deff6ee5437993e08eeab7d4a84a0.zip |
Fix UIAutoGeneratedStyleNameTest. (#14670)
Change-Id: I5d6cb7df9989e5cf5b5e1e55a75b1a03fbab8050
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/ui/UIAutoGeneratedStyleNameTest.java | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/uitest/src/com/vaadin/tests/components/ui/UIAutoGeneratedStyleNameTest.java b/uitest/src/com/vaadin/tests/components/ui/UIAutoGeneratedStyleNameTest.java index 48d4c406f7..73e0a7f6b9 100644 --- a/uitest/src/com/vaadin/tests/components/ui/UIAutoGeneratedStyleNameTest.java +++ b/uitest/src/com/vaadin/tests/components/ui/UIAutoGeneratedStyleNameTest.java @@ -15,20 +15,13 @@ */ 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()); - } - } |