From 0b1a42385a4f527e0224a7d1c718236f297878a8 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 7 Dec 2012 15:54:30 +0200 Subject: [PATCH] Hide footer to be screenshot compatible (#10478, #10080) Change-Id: I5c18ec975c99bda4b44492252eefe34c307b34da --- .../tests/components/customfield/AbstractNestedFormExample.java | 1 + .../vaadin/tests/components/customfield/BooleanFieldExample.java | 1 + .../vaadin/tests/components/datefield/DateFieldInSubWindow.java | 1 + .../vaadin/tests/components/form/FormClearDatasourceRepaint.java | 1 + .../tests/components/form/FormCommitWithInvalidValues.java | 1 + .../components/window/UndefinedHeightSubWindowAndContent.java | 1 + .../com/vaadin/tests/validation/EmptyFieldErrorIndicators.java | 1 + 7 files changed, 7 insertions(+) diff --git a/uitest/src/com/vaadin/tests/components/customfield/AbstractNestedFormExample.java b/uitest/src/com/vaadin/tests/components/customfield/AbstractNestedFormExample.java index 07c740a96d..eb73e45616 100644 --- a/uitest/src/com/vaadin/tests/components/customfield/AbstractNestedFormExample.java +++ b/uitest/src/com/vaadin/tests/components/customfield/AbstractNestedFormExample.java @@ -60,6 +60,7 @@ public abstract class AbstractNestedFormExample extends TestBase { if (event.getProperty().getValue() != null) { personForm = new NestedPersonForm((Person) event .getProperty().getValue(), embeddedAddress); + personForm.setFooter(null); personForm.setWidth("350px"); addComponent(personForm); } diff --git a/uitest/src/com/vaadin/tests/components/customfield/BooleanFieldExample.java b/uitest/src/com/vaadin/tests/components/customfield/BooleanFieldExample.java index a52b168e84..66346287ba 100644 --- a/uitest/src/com/vaadin/tests/components/customfield/BooleanFieldExample.java +++ b/uitest/src/com/vaadin/tests/components/customfield/BooleanFieldExample.java @@ -45,6 +45,7 @@ public class BooleanFieldExample extends TestBase { layout.setMargin(true); final Form form = new Form(); + form.setFooter(null); form.setFormFieldFactory(new DefaultFieldFactory() { @Override public Field createField(Item item, Object propertyId, diff --git a/uitest/src/com/vaadin/tests/components/datefield/DateFieldInSubWindow.java b/uitest/src/com/vaadin/tests/components/datefield/DateFieldInSubWindow.java index d6fbb465e8..fab97f46cb 100644 --- a/uitest/src/com/vaadin/tests/components/datefield/DateFieldInSubWindow.java +++ b/uitest/src/com/vaadin/tests/components/datefield/DateFieldInSubWindow.java @@ -88,6 +88,7 @@ public class DateFieldInSubWindow extends AbstractTestCase { CustomerFieldFactory fieldFactory = new CustomerFieldFactory(); final Form generalForm = new Form(); { + generalForm.setFooter(null); generalForm.setCaption("My form"); generalForm.setBuffered(false); generalForm.setFormFieldFactory(fieldFactory); diff --git a/uitest/src/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java b/uitest/src/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java index ad6b13f6d2..df403ceb78 100644 --- a/uitest/src/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java +++ b/uitest/src/com/vaadin/tests/components/form/FormClearDatasourceRepaint.java @@ -38,6 +38,7 @@ public class FormClearDatasourceRepaint extends TestBase { protected void setup() { final Form form = new Form(); + form.setFooter(null); form.setItemDataSource(new BeanItem(new MySecondBean())); addComponent(form); diff --git a/uitest/src/com/vaadin/tests/components/form/FormCommitWithInvalidValues.java b/uitest/src/com/vaadin/tests/components/form/FormCommitWithInvalidValues.java index 907b8a27f3..b6b0624ba0 100644 --- a/uitest/src/com/vaadin/tests/components/form/FormCommitWithInvalidValues.java +++ b/uitest/src/com/vaadin/tests/components/form/FormCommitWithInvalidValues.java @@ -26,6 +26,7 @@ public class FormCommitWithInvalidValues extends TestBase { @Override protected void setup() { form = new Form(); + form.setFooter(null); TextField tf = new TextField("A field, must contain 1-2 chars"); tf.addValidator(new StringLengthValidator("Invalid length", 1, 2, false)); tf.setRequired(true); diff --git a/uitest/src/com/vaadin/tests/components/window/UndefinedHeightSubWindowAndContent.java b/uitest/src/com/vaadin/tests/components/window/UndefinedHeightSubWindowAndContent.java index 715d089f57..1a34e90446 100644 --- a/uitest/src/com/vaadin/tests/components/window/UndefinedHeightSubWindowAndContent.java +++ b/uitest/src/com/vaadin/tests/components/window/UndefinedHeightSubWindowAndContent.java @@ -20,6 +20,7 @@ public class UndefinedHeightSubWindowAndContent extends TestBase { subWindow.setContent(layout); final Form form = new Form(); + form.setFooter(null); form.setImmediate(true); form.setValidationVisible(true); form.setCaption("This is a form"); diff --git a/uitest/src/com/vaadin/tests/validation/EmptyFieldErrorIndicators.java b/uitest/src/com/vaadin/tests/validation/EmptyFieldErrorIndicators.java index a62eb62e71..11f98eb888 100644 --- a/uitest/src/com/vaadin/tests/validation/EmptyFieldErrorIndicators.java +++ b/uitest/src/com/vaadin/tests/validation/EmptyFieldErrorIndicators.java @@ -55,6 +55,7 @@ public class EmptyFieldErrorIndicators extends TestBase { part.setMargin(true); final Form form = createForm(required, failValidator); + form.setFooter(null); part.addComponent(form); Button validate = new Button("Validate fields"); -- 2.39.5