summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorTapio Aali <tapio@vaadin.com>2014-10-07 10:22:24 +0300
committerVaadin Code Review <review@vaadin.com>2014-10-15 09:06:07 +0000
commita4a992efcf95b3615402047456fcb2995a1736f4 (patch)
tree58f1d41c2f9154dd4df18a5f0f51c22babcb4271 /uitest
parentad742c4ed476615d612cc95509351039da7d3707 (diff)
downloadvaadin-framework-a4a992efcf95b3615402047456fcb2995a1736f4.tar.gz
vaadin-framework-a4a992efcf95b3615402047456fcb2995a1736f4.zip
Fixed FontIcons on VWindow (#14481).
Change-Id: I1b7cb280088379a6512e23a663dbf2a31f8123cd
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/window/WindowWithIcon.java27
-rw-r--r--uitest/src/com/vaadin/tests/components/window/WindowWithIconTest.java16
2 files changed, 43 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/window/WindowWithIcon.java b/uitest/src/com/vaadin/tests/components/window/WindowWithIcon.java
new file mode 100644
index 0000000000..15ceb569b4
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/window/WindowWithIcon.java
@@ -0,0 +1,27 @@
+package com.vaadin.tests.components.window;
+
+import com.vaadin.server.FontAwesome;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.tests.components.AbstractTestUI;
+import com.vaadin.ui.Window;
+
+public class WindowWithIcon extends AbstractTestUI {
+
+ @Override
+ protected void setup(VaadinRequest request) {
+ Window window = new Window("Window Caption");
+ window.setIcon(FontAwesome.ROCKET);
+ addWindow(window);
+ }
+
+ @Override
+ protected String getTestDescription() {
+ return "Window should work properly with font icons.";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 14481;
+ }
+
+}
diff --git a/uitest/src/com/vaadin/tests/components/window/WindowWithIconTest.java b/uitest/src/com/vaadin/tests/components/window/WindowWithIconTest.java
new file mode 100644
index 0000000000..25c7f57238
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/window/WindowWithIconTest.java
@@ -0,0 +1,16 @@
+package com.vaadin.tests.components.window;
+
+import org.junit.Test;
+
+import com.vaadin.tests.tb3.MultiBrowserTest;
+
+public class WindowWithIconTest extends MultiBrowserTest {
+
+ @Test
+ public void testWindowWithIcon() throws Exception {
+ openTestURL();
+
+ compareScreen("icon-rendered-properly");
+ }
+
+}