summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>2012-09-25 14:52:27 +0000
committerJohannes Dahlström <johannesd@vaadin.com>2012-10-03 15:27:18 +0300
commit4b930acc0f76fdd65bbd72c9384067e5be176095 (patch)
treec49740c6c8b6d7f4616938d0b2c2bf0fe4bc5c92 /tests
parenta930bbb16eeb7c8663c136b441ff44024c615447 (diff)
downloadvaadin-framework-4b930acc0f76fdd65bbd72c9384067e5be176095.tar.gz
vaadin-framework-4b930acc0f76fdd65bbd72c9384067e5be176095.zip
Test case for #9508
svn changeset:24580/svn branch:6.8 Change-Id: I2cb7dd24e09c8aaa439b43881ac6a5327cf0fac1
Diffstat (limited to 'tests')
-rw-r--r--tests/testbench/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/testbench/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java b/tests/testbench/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java
new file mode 100644
index 0000000000..0fdb579997
--- /dev/null
+++ b/tests/testbench/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;
+ }
+
+}