diff options
author | Artur Signell <artur.signell@itmill.com> | 2009-06-18 10:05:23 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2009-06-18 10:05:23 +0000 |
commit | e175330893dbaf97bdc79c664ba787f07eb0bc22 (patch) | |
tree | 7a41c4520f3c52888b0f2175e1d4213a9c5f2598 /src | |
parent | 6a4552847b31420e71062568eaaf7f711e5766d3 (diff) | |
download | vaadin-framework-e175330893dbaf97bdc79c664ba787f07eb0bc22.tar.gz vaadin-framework-e175330893dbaf97bdc79c664ba787f07eb0bc22.zip |
Test case for #3065
svn changeset:8215/svn branch:6.0
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/tests/components/accordion/AccordionInactiveTabSize.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/com/vaadin/tests/components/accordion/AccordionInactiveTabSize.java b/src/com/vaadin/tests/components/accordion/AccordionInactiveTabSize.java new file mode 100644 index 0000000000..c0172cfee0 --- /dev/null +++ b/src/com/vaadin/tests/components/accordion/AccordionInactiveTabSize.java @@ -0,0 +1,40 @@ +package com.vaadin.tests.components.accordion; + +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.Accordion; +import com.vaadin.ui.SplitPanel; +import com.vaadin.ui.TextField; +import com.vaadin.ui.TabSheet.Tab; + +public class AccordionInactiveTabSize extends TestBase { + + @Override + protected String getDescription() { + return "Select the second tab and move the splitter to the right. Both the inactive and the active tab should be resized."; + } + + @Override + protected Integer getTicketNumber() { + return 3065; + } + + @Override + protected void setup() { + SplitPanel sp = new SplitPanel(SplitPanel.ORIENTATION_HORIZONTAL); + sp.setSizeFull(); + + Accordion acc = new Accordion(); + + Tab tab1 = acc.addTab(new TextField("first field")); + tab1.setCaption("First tab"); + + Tab tab2 = acc.addTab(new TextField("second field")); + tab2.setCaption("Second tab"); + + acc.setSizeFull(); + + sp.addComponent(acc); + addComponent(sp); + + } +} |