summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/tests
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-08-21 13:45:30 +0000
committerArtur Signell <artur.signell@itmill.com>2009-08-21 13:45:30 +0000
commitcc671ebd9b04a285cb9f8148c9bc997c76c41f89 (patch)
tree8aee34373e4ce2e10d348a35adc2bf73b40ecff3 /src/com/vaadin/tests
parentf93447981aec5dd47275caf3b09c74f304bc2e4c (diff)
downloadvaadin-framework-cc671ebd9b04a285cb9f8148c9bc997c76c41f89.tar.gz
vaadin-framework-cc671ebd9b04a285cb9f8148c9bc997c76c41f89.zip
Moved testcase to correct package
svn changeset:8524/svn branch:6.1
Diffstat (limited to 'src/com/vaadin/tests')
-rw-r--r--src/com/vaadin/tests/components/window/SubwindowInvalidLayout.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/com/vaadin/tests/components/window/SubwindowInvalidLayout.java b/src/com/vaadin/tests/components/window/SubwindowInvalidLayout.java
new file mode 100644
index 0000000000..aeab7f6c97
--- /dev/null
+++ b/src/com/vaadin/tests/components/window/SubwindowInvalidLayout.java
@@ -0,0 +1,35 @@
+package com.vaadin.tests.components.window;
+
+import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.VerticalLayout;
+import com.vaadin.ui.Window;
+
+public class SubwindowInvalidLayout extends TestBase {
+
+ @Override
+ protected String getDescription() {
+ return "The subwindow contains an invalid layout, which analyze layouts should detect.";
+ }
+
+ @Override
+ protected Integer getTicketNumber() {
+ return 3096;
+ }
+
+ @Override
+ protected void setup() {
+ Window window = new Window("Sub window");
+ window.center();
+
+ VerticalLayout vl = new VerticalLayout();
+ vl.setWidth(null);
+ Button b = new Button("A 100% wide button, invalid");
+ b.setWidth("100%");
+ vl.addComponent(b);
+ window.addComponent(vl);
+
+ getMainWindow().addWindow(window);
+ }
+
+}