From: Artur Signell Date: Tue, 6 Jul 2010 14:40:32 +0000 (+0000) Subject: Test case for #3915 X-Git-Tag: 6.7.0.beta1~1422 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b518d769934e999e774ef1d986d1cff1829f6e5b;p=vaadin-framework.git Test case for #3915 svn changeset:14104/svn branch:6.4 --- diff --git a/tests/src/com/vaadin/tests/layouts/TreeWithBordersInLayout.java b/tests/src/com/vaadin/tests/layouts/TreeWithBordersInLayout.java new file mode 100644 index 0000000000..27b1ce6462 --- /dev/null +++ b/tests/src/com/vaadin/tests/layouts/TreeWithBordersInLayout.java @@ -0,0 +1,42 @@ +package com.vaadin.tests.layouts; + +import com.vaadin.tests.components.AbstractTestCase; +import com.vaadin.ui.Layout; +import com.vaadin.ui.Tree; +import com.vaadin.ui.VerticalLayout; +import com.vaadin.ui.Window; + +public class TreeWithBordersInLayout extends AbstractTestCase { + + private static final Object CAPTION = "caption"; + + @Override + public void init() { + Layout mainLayout = new VerticalLayout(); + mainLayout.setSizeUndefined(); + setMainWindow(new Window("main window", mainLayout)); + + setTheme("tests-tickets"); + + Tree t = new Tree(); + t.addContainerProperty(CAPTION, String.class, ""); + t.setItemCaptionPropertyId(CAPTION); + t.addItem("Item 1").getItemProperty(CAPTION).setValue("Item 1"); + + t.setSizeUndefined(); + t.setStyleName("redblueborders"); + mainLayout.addComponent(t); + + } + + @Override + protected String getDescription() { + return "The tree consists of one node and has a 10px blue red border and a 10px red right border. The tree node should be visible between the borders."; + } + + @Override + protected Integer getTicketNumber() { + return 3915; + } + +}