From: Artur Signell Date: Tue, 22 Dec 2009 08:11:28 +0000 (+0000) Subject: Updated test case for #3710 X-Git-Tag: 6.7.0.beta1~2084^2~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4d4e4df575aaf4f9917d739ad2b1454d2b02ebb1;p=vaadin-framework.git Updated test case for #3710 svn changeset:10505/svn branch:6.2 --- diff --git a/tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.html b/tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.html new file mode 100644 index 0000000000..fbeb0ee2fe --- /dev/null +++ b/tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.html @@ -0,0 +1,32 @@ + + + + + + +New Test + + + + + + + + + + + + + + + + + + + + + + +
New Test
open/run/com.vaadin.tests.components.form.UndefinedWideFormWithRelativeWideFooter?debug&restartApplication
waitForVaadin
screenCaptureinitial
+ + diff --git a/tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java b/tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java new file mode 100644 index 0000000000..4c47c8a58d --- /dev/null +++ b/tests/src/com/vaadin/tests/components/form/UndefinedWideFormWithRelativeWideFooter.java @@ -0,0 +1,35 @@ +package com.vaadin.tests.components.form; + +import com.vaadin.Application; +import com.vaadin.ui.Button; +import com.vaadin.ui.Form; +import com.vaadin.ui.HorizontalLayout; +import com.vaadin.ui.TextField; +import com.vaadin.ui.Window; + +@SuppressWarnings("serial") +public class UndefinedWideFormWithRelativeWideFooter extends Application { + + @Override + public void init() { + + Window w = new Window("Test"); + setMainWindow(w); + + final Form f = new Form(); + w.addComponent(f); + f.setSizeUndefined(); + f.getLayout().setSizeUndefined(); + + f.setCaption("Test form with a really long caption"); + f.addField("foo", new TextField("Foo")); + f.addField("bar", new TextField("A bit longer field caption")); + + HorizontalLayout hl = new HorizontalLayout(); + hl.setWidth("100%"); + Button b = new Button("right aligned"); + hl.addComponent(b); + hl.setComponentAlignment(b, "r"); + f.setFooter(hl); + } +} diff --git a/tests/src/com/vaadin/tests/tickets/Ticket3710.java b/tests/src/com/vaadin/tests/tickets/Ticket3710.java deleted file mode 100644 index 430f3967a0..0000000000 --- a/tests/src/com/vaadin/tests/tickets/Ticket3710.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.vaadin.tests.tickets; - -import com.vaadin.Application; -import com.vaadin.ui.Button; -import com.vaadin.ui.Form; -import com.vaadin.ui.HorizontalLayout; -import com.vaadin.ui.TextField; -import com.vaadin.ui.Window; - -@SuppressWarnings("serial") -public class Ticket3710 extends Application { - - @Override - public void init() { - - Window w = new Window("Test"); - setMainWindow(w); - - final Form f = new Form(); - w.addComponent(f); - f.setSizeUndefined(); - f.setCaption("Test form with a really long caption"); - f.addField("foo", new TextField("Foo")); - f.addField("bar", new TextField("A bit longer field caption")); - - HorizontalLayout hl = new HorizontalLayout(); - hl.setWidth("100%"); - Button b = new Button("right aligned"); - hl.addComponent(b); - hl.setComponentAlignment(b, "r"); - f.setFooter(hl); - } - -}