@@ -0,0 +1,1230 @@
+package com.vaadin.tests.layouts;%0D%0A%0D%0Aimport com.vaadin.tests.components.AbstractTestCase;%0D%0Aimport com.vaadin.ui.Layout;%0D%0Aimport com.vaadin.ui.Tree;%0D%0Aimport com.vaadin.ui.VerticalLayout;%0D%0Aimport com.vaadin.ui.Window;%0D%0A%0D%0Apublic class TreeWithBordersInLayout extends AbstractTestCase %7B%0D%0A%0D%0A    private static final Object CAPTION = %22caption%22;%0D%0A%0D%0A    @Override%0D%0A    public void init() %7B%0D%0A        Layout mainLayout = new VerticalLayout();%0D%0A        mainLayout.setSizeUndefined();%0D%0A        setMainWindow(new Window(%22main window%22, mainLayout));%0D%0A%0D%0A        setTheme(%22tests-tickets%22);%0D%0A%0D%0A        Tree t = new Tree();%0D%0A        t.addContainerProperty(CAPTION, String.class, %22%22);%0D%0A        t.setItemCaptionPropertyId(CAPTION);%0D%0A        t.addItem(%22Item 1%22).getItemProperty(CAPTION).setValue(%22Item 1%22);%0D%0A%0D%0A        t.setSizeUndefined();%0D%0A        t.setStyleName(%22redblueborders%22);%0D%0A        mainLayout.addComponent(t);%0D%0A%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    protected String getDescription() %7B%0D%0A        return %22The 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.%22;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    protected Integer getTicketNumber() %7B%0D%0A        return 3915;%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Test case for #3915