diff options
author | Anna Koskinen <anna@vaadin.com> | 2012-12-18 11:34:46 +0200 |
---|---|---|
committer | Anna Koskinen <anna@vaadin.com> | 2012-12-18 11:34:46 +0200 |
commit | f7bd648b1b820a368b8c9136f7fa4817065cbc36 (patch) | |
tree | 402f19846c72375e7b455f9d0a9b83b094897a33 | |
parent | 33933478c6948cca467d0aee615428208ea7d49d (diff) | |
download | vaadin-framework-f7bd648b1b820a368b8c9136f7fa4817065cbc36.tar.gz vaadin-framework-f7bd648b1b820a368b8c9136f7fa4817065cbc36.zip |
Merge of (#9508) test to Vaadin 7.
Tabsheet content shouldn't disappear after browser resize.
Change-Id: If5dafd23925b4ada520d218af60aa48366a75aaa
-rw-r--r-- | uitest/src/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java b/uitest/src/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java new file mode 100644 index 0000000000..0fdb579997 --- /dev/null +++ b/uitest/src/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java @@ -0,0 +1,38 @@ +package com.vaadin.tests.components.tabsheet; + +import com.vaadin.tests.components.TestBase; +import com.vaadin.ui.Button; +import com.vaadin.ui.Button.ClickEvent; +import com.vaadin.ui.Label; +import com.vaadin.ui.TabSheet; + +public class HiddenTabSheetBrowserResize extends TestBase { + + @Override + public void setup() { + final TabSheet tabSheet = new TabSheet(); + + tabSheet.addTab(new Label("Label1"), "Tab1"); + tabSheet.addTab(new Label("Label2"), "Tab2"); + + Button toggleButton = new Button("Toggle TabSheet", + new Button.ClickListener() { + public void buttonClick(ClickEvent event) { + tabSheet.setVisible(!tabSheet.isVisible()); + } + }); + addComponent(toggleButton); + addComponent(tabSheet); + } + + @Override + protected String getDescription() { + return "TabSheet content disappears if browser window resized when the TabSheet is hidden"; + } + + @Override + protected Integer getTicketNumber() { + return 9508; + } + +} |