]> source.dussan.org Git - vaadin-framework.git/commitdiff
Test case for #3407
authorArtur Signell <artur.signell@itmill.com>
Fri, 25 Sep 2009 11:17:46 +0000 (11:17 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 25 Sep 2009 11:17:46 +0000 (11:17 +0000)
svn changeset:8923/svn branch:6.1

src/com/vaadin/tests/components/window/FullSizedWindow.java [new file with mode: 0644]

diff --git a/src/com/vaadin/tests/components/window/FullSizedWindow.java b/src/com/vaadin/tests/components/window/FullSizedWindow.java
new file mode 100644 (file)
index 0000000..3cb5f45
--- /dev/null
@@ -0,0 +1,31 @@
+package com.vaadin.tests.components.window;\r
+\r
+import com.vaadin.tests.components.TestBase;\r
+import com.vaadin.ui.NativeButton;\r
+import com.vaadin.ui.Window;\r
+\r
+public class FullSizedWindow extends TestBase {\r
+\r
+    @Override\r
+    protected void setup() {\r
+        Window w = new Window("full sized window");\r
+        w.setSizeFull();\r
+        w.getContent().setSizeFull();\r
+        NativeButton b = new NativeButton("A large button");\r
+        b.setSizeFull();\r
+        w.getContent().addComponent(b);\r
+        getMainWindow().addWindow(w);\r
+        setTheme("runo");\r
+    }\r
+\r
+    @Override\r
+    protected String getDescription() {\r
+        return "A 100%x100% sub window should not produce scrollbars in the main view or in the sub window. The button inside the sub window is 100%x100%, as is the layout";\r
+    }\r
+\r
+    @Override\r
+    protected Integer getTicketNumber() {\r
+        return 3407;\r
+    }\r
+\r
+}\r