From: Artur Signell Date: Fri, 22 May 2009 16:46:25 +0000 (+0000) Subject: Fixed deprecated API used in TestBase X-Git-Tag: 6.7.0.beta1~2794 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a4b7e0b6627e58082942eed12fd542039e446bbb;p=vaadin-framework.git Fixed deprecated API used in TestBase svn changeset:7971/svn branch:6.0 --- diff --git a/src/com/vaadin/tests/components/TestBase.java b/src/com/vaadin/tests/components/TestBase.java index 45cc69516d..b56c9dd46f 100644 --- a/src/com/vaadin/tests/components/TestBase.java +++ b/src/com/vaadin/tests/components/TestBase.java @@ -4,7 +4,6 @@ import com.vaadin.Application; import com.vaadin.ui.Component; import com.vaadin.ui.Label; import com.vaadin.ui.Layout; -import com.vaadin.ui.SplitPanel; import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; @@ -14,21 +13,20 @@ public abstract class TestBase extends Application { public final void init() { window = new Window(getClass().getName()); setMainWindow(window); - window.getLayout().setSizeFull(); + window.getContent().setSizeFull(); Label label = new Label(getDescription(), Label.CONTENT_XHTML); label.setWidth("100%"); - window.getLayout().addComponent(label); + window.getContent().addComponent(label); layout = new VerticalLayout(); - window.getLayout().addComponent(layout); - ((VerticalLayout) window.getLayout()).setExpandRatio(layout, 1); + window.getContent().addComponent(layout); + ((VerticalLayout) window.getContent()).setExpandRatio(layout, 1); setup(); } private Window window; - private SplitPanel splitPanel; private Layout layout; public TestBase() {