aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket2319.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/tickets/Ticket2319.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/tickets/Ticket2319.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2319.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2319.java b/uitest/src/com/vaadin/tests/tickets/Ticket2319.java
index 6534ffe37d..fbe1796b32 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2319.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2319.java
@@ -21,18 +21,18 @@ public class Ticket2319 extends LegacyApplication {
"This test has somewhat invalid layouts in it to detect analyzy layout function in debug dialog"));
HorizontalLayout hl = new HorizontalLayout();
- Panel panel = new Panel("p1");
- Panel panel2 = new Panel("p2");
+ Panel panel = buildPanel("p1");
+ Panel panel2 = buildPanel("p2");
hl.addComponent(panel);
hl.addComponent(panel2);
mainw.addComponent(hl);
hl = new HorizontalLayout();
- panel = new Panel("p1");
+ panel = buildPanel("p1");
panel.setSizeUndefined();
panel.setHeight("100%");
- panel2 = new Panel("p2");
+ panel2 = buildPanel("p2");
panel2.setSizeUndefined();
panel2.setHeight("100%");
@@ -63,4 +63,10 @@ public class Ticket2319 extends LegacyApplication {
mainw.addComponent(new Button("click me to save split panel state"));
}
+ private Panel buildPanel(String caption) {
+ VerticalLayout pl = new VerticalLayout();
+ pl.setMargin(true);
+ return new Panel(caption, pl);
+ }
+
}