summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-12-07 15:48:38 +0000
committerArtur Signell <artur.signell@itmill.com>2010-12-07 15:48:38 +0000
commitede903d48329523a07dff5b820dfba410ae18e05 (patch)
tree69421df9188b8be3942973110f04390b550ceed9 /tests
parent5257b56515beff2ef450aa4aaea3a3894bf00937 (diff)
downloadvaadin-framework-ede903d48329523a07dff5b820dfba410ae18e05.tar.gz
vaadin-framework-ede903d48329523a07dff5b820dfba410ae18e05.zip
#2942 - Dual captions for TwinColSelect
Changed style names to be consistent with server side API Added test for caption style names svn changeset:16375/svn branch:6.5
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.html37
-rw-r--r--tests/src/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.java42
2 files changed, 79 insertions, 0 deletions
diff --git a/tests/src/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.html b/tests/src/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.html
new file mode 100644
index 0000000000..7fd4908673
--- /dev/null
+++ b/tests/src/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.html
@@ -0,0 +1,37 @@
+<?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>New Test</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">New Test</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/run/com.vaadin.tests.components.select.TwinColSelectCaptionStyles?restartApplication</td>
+ <td></td>
+</tr>
+<tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>auto-auto</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>vaadin=runcomvaadintestscomponentsselectTwinColSelectCaptionStyles::/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>500px-500px</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
diff --git a/tests/src/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.java b/tests/src/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.java
new file mode 100644
index 0000000000..f3d147e32a
--- /dev/null
+++ b/tests/src/com/vaadin/tests/components/select/TwinColSelectCaptionStyles.java
@@ -0,0 +1,42 @@
+package com.vaadin.tests.components.select;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Button.ClickEvent;
+import com.vaadin.ui.TwinColSelect;
+
+public class TwinColSelectCaptionStyles extends TestBase {
+
+ @Override
+ protected void setup() {
+ setTheme("tests-tickets");
+ final TwinColSelect sel = new TwinColSelect("Component caption");
+ sel.setLeftColumnCaption("Left caption");
+ sel.setRightColumnCaption("Right caption");
+ sel.setStyleName("styled-twincol-captions");
+ sel.setWidth("300px");
+ addComponent(sel);
+
+ Button b = new Button("Set height and width to 500px",
+ new Button.ClickListener() {
+
+ public void buttonClick(ClickEvent event) {
+ sel.setHeight("500px");
+ sel.setWidth("500px");
+
+ }
+ });
+ addComponent(b);
+ }
+
+ @Override
+ protected String getDescription() {
+ return "Tests that caption styling for TwinColSelect captions work properly. The left caption should be red and the right caption blue and larger than the left one.";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return null;
+ }
+
+}