]> source.dussan.org Git - vaadin-framework.git/commitdiff
[merge from 6.7] #8801 TestBench test
authorAutomerge <automerge@vaadin.com>
Tue, 29 May 2012 13:09:24 +0000 (13:09 +0000)
committerAutomerge <automerge@vaadin.com>
Tue, 29 May 2012 13:09:24 +0000 (13:09 +0000)
svn changeset:23840/svn branch:6.8

tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.html [new file with mode: 0644]
tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.java [new file with mode: 0644]

diff --git a/tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.html b/tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.html
new file mode 100644 (file)
index 0000000..48adf2e
--- /dev/null
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="" />
+<title>StylingPopupOpener</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">StylingPopupOpener</td></tr>
+</thead><tbody>
+<tr>
+       <td>open</td>
+       <td>/run/com.vaadin.tests.components.select.StylingPopupOpener?restartApplication</td>
+       <td></td>
+</tr>
+<tr>
+       <td>click</td>
+       <td>vaadin=runcomvaadintestscomponentsselectStylingPopupOpener::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]</td>
+       <td></td>
+</tr>
+<tr>
+       <td>screenCapture</td>
+       <td></td>
+       <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.java b/tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.java
new file mode 100644 (file)
index 0000000..b3911f1
--- /dev/null
@@ -0,0 +1,38 @@
+package com.vaadin.tests.components.select;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.tests.util.TestUtils;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Button.ClickEvent;
+import com.vaadin.ui.Select;
+
+public class StylingPopupOpener extends TestBase {
+
+    @Override
+    protected void setup() {
+        TestUtils
+                .injectCSS(
+                        getMainWindow(),
+                        ".v-filterselect-mystyle .v-filterselect-button { width: 50px; background-color: red; } ");
+
+        final Select select = new Select();
+        addComponent(select);
+
+        addComponent(new Button("Update style", new Button.ClickListener() {
+            public void buttonClick(ClickEvent event) {
+                select.setStyleName("mystyle");
+            }
+        }));
+    }
+
+    @Override
+    protected String getDescription() {
+        return "VFilterSelect popup opener width is not updated when the style or theme changes";
+    }
+
+    @Override
+    protected Integer getTicketNumber() {
+        return 8801;
+    }
+
+}