From cc671ebd9b04a285cb9f8148c9bc997c76c41f89 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 21 Aug 2009 13:45:30 +0000 Subject: Moved testcase to correct package svn changeset:8524/svn branch:6.1 --- .../components/window/SubwindowInvalidLayout.java | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/com/vaadin/tests/components/window/SubwindowInvalidLayout.java (limited to 'src/com/vaadin/tests') 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); + } + +} -- cgit v1.2.3