aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/TestCaptionWrapper.java
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2012-11-14 13:49:47 +0200
committerHenri Sara <hesara@vaadin.com>2012-11-14 13:49:47 +0200
commitaca92f4937cc54f122b20c4bfb6288ee007c9e47 (patch)
tree7d7ee8e0cfa760e5f6b1da15ea8fe088f542540f /uitest/src/com/vaadin/tests/TestCaptionWrapper.java
parent1b7a4a1ee9e03f445cbfcbb520a5ac970ccf47de (diff)
downloadvaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.tar.gz
vaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.zip
Panel and Window based on AbstractSingleComponentContainer (#2924)
Change-Id: I9eb1f40a02dcad0f756ad2518d86ef1c52aa69c2
Diffstat (limited to 'uitest/src/com/vaadin/tests/TestCaptionWrapper.java')
-rw-r--r--uitest/src/com/vaadin/tests/TestCaptionWrapper.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/TestCaptionWrapper.java b/uitest/src/com/vaadin/tests/TestCaptionWrapper.java
index bac83f9504..a5f7b83c32 100644
--- a/uitest/src/com/vaadin/tests/TestCaptionWrapper.java
+++ b/uitest/src/com/vaadin/tests/TestCaptionWrapper.java
@@ -81,9 +81,11 @@ public class TestCaptionWrapper extends CustomComponent implements Listener {
test(main);
populateLayout(main);
- final Panel panel = new Panel("Panel");
+ VerticalLayout panelLayout = new VerticalLayout();
+ panelLayout.setMargin(true);
+ final Panel panel = new Panel("Panel", panelLayout);
test(panel);
- populateLayout((Layout) panel.getContent());
+ populateLayout(panelLayout);
final TabSheet tabsheet = new TabSheet();
test(tabsheet);
@@ -124,7 +126,9 @@ public class TestCaptionWrapper extends CustomComponent implements Listener {
final Embedded emb = new Embedded("Embedded " + count++);
test(layout, emb);
- final Panel panel = new Panel("Panel " + count++);
+ VerticalLayout panelLayout = new VerticalLayout();
+ panelLayout.setMargin(true);
+ final Panel panel = new Panel("Panel " + count++, panelLayout);
test(layout, panel);
final Label label = new Label("Label " + count++);