diff options
author | Marc Englund <marc.englund@itmill.com> | 2009-01-28 08:48:19 +0000 |
---|---|---|
committer | Marc Englund <marc.englund@itmill.com> | 2009-01-28 08:48:19 +0000 |
commit | 4f220a97a14e5e805ddfe15cb39e8492ba7743f2 (patch) | |
tree | a967f5fe2859adfdbecb2059a484a39e61a9ddd9 /src | |
parent | b79d8a2bf6ed6687ea8761887ff7aa11d375f8fa (diff) | |
download | vaadin-framework-4f220a97a14e5e805ddfe15cb39e8492ba7743f2.tar.gz vaadin-framework-4f220a97a14e5e805ddfe15cb39e8492ba7743f2.zip |
TC for #2508
svn changeset:6659/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/com/itmill/toolkit/tests/components/combobox/ComboBoxInPopupView.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/tests/components/combobox/ComboBoxInPopupView.java b/src/com/itmill/toolkit/tests/components/combobox/ComboBoxInPopupView.java new file mode 100644 index 0000000000..64efb50c91 --- /dev/null +++ b/src/com/itmill/toolkit/tests/components/combobox/ComboBoxInPopupView.java @@ -0,0 +1,42 @@ +package com.itmill.toolkit.tests.components.combobox; + +import java.util.Map; + +import com.itmill.toolkit.tests.components.TestBase; +import com.itmill.toolkit.ui.ComboBox; +import com.itmill.toolkit.ui.PopupView; + +public class ComboBoxInPopupView extends TestBase { + + @Override + protected Integer getTicketNumber() { + return 2508; + } + + @Override + protected String getDescription() { + return "Testcase for ComboBox in PopupView. Make the window narrower than the popup: the focused (2) one wraps button to second row AND seems narrower than (1), the unfocused one (1) works as expected."; + } + + @Override + protected void setup() { + final ComboBox cb1 = new ComboBox(); + cb1.setWidth("260px"); + // cb.focus(); + PopupView pv1 = new PopupView("<u>1. expected (click)</u>", cb1); + getLayout().addComponent(pv1); + + final ComboBox cb2 = new ComboBox(); + cb2.setWidth("260px"); + PopupView pv2 = new PopupView("<u>2. focused (click)</u>", cb2) { + public void changeVariables(Object source, Map variables) { + super.changeVariables(source, variables); + cb2.focus(); + } + + }; + getLayout().addComponent(pv2); + + } + +} |