From 6d07c324f8a6268c52fe3c4eb969450622d9a985 Mon Sep 17 00:00:00 2001 From: Automerge Date: Tue, 29 May 2012 13:09:24 +0000 Subject: [PATCH] [merge from 6.7] #8801 TestBench test svn changeset:23840/svn branch:6.8 --- .../components/select/StylingPopupOpener.html | 32 ++++++++++++++++ .../components/select/StylingPopupOpener.java | 38 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.html create mode 100644 tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.java 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 index 0000000000..48adf2edfe --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.html @@ -0,0 +1,32 @@ + + + + + + +StylingPopupOpener + + + + + + + + + + + + + + + + + + + + + + +
StylingPopupOpener
open/run/com.vaadin.tests.components.select.StylingPopupOpener?restartApplication
clickvaadin=runcomvaadintestscomponentsselectStylingPopupOpener::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]
screenCapture
+ + 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 index 0000000000..b3911f19c7 --- /dev/null +++ b/tests/testbench/com/vaadin/tests/components/select/StylingPopupOpener.java @@ -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; + } + +} -- 2.39.5