]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test case for #9508
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Tue, 25 Sep 2012 14:52:27 +0000 (14:52 +0000)
committerJohannes Dahlström <johannesd@vaadin.com>
Wed, 3 Oct 2012 12:27:18 +0000 (15:27 +0300)
svn changeset:24580/svn branch:6.8

Change-Id: I2cb7dd24e09c8aaa439b43881ac6a5327cf0fac1

tests/testbench/com/vaadin/tests/components/tabsheet/HiddenTabSheetBrowserResize.java [new file with mode: 0644]

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 (file)
index 0000000..0fdb579
--- /dev/null
@@ -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;
+    }
+
+}