@@ -0,0 +1,1622 @@
+package com.itmill.toolkit.tests.components.tabsheet;%0D%0A%0D%0Aimport com.itmill.toolkit.terminal.ThemeResource;%0D%0Aimport com.itmill.toolkit.tests.components.TestBase;%0D%0Aimport com.itmill.toolkit.ui.Component;%0D%0Aimport com.itmill.toolkit.ui.Label;%0D%0Aimport com.itmill.toolkit.ui.TabSheet;%0D%0Aimport com.itmill.toolkit.ui.TextField;%0D%0A%0D%0Apublic class TabSheetIcons extends TestBase %7B%0D%0A%0D%0A    @Override%0D%0A    protected String getDescription() %7B%0D%0A        return %22Tests rendering of a Tabsheet with fixed/dynamic width when the TabSheet contains icons%22;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    protected Integer getTicketNumber() %7B%0D%0A        return null;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    protected void setup() %7B%0D%0A        TabSheet ts1 = createTabsheet();%0D%0A        ts1.setHeight(%22100px%22);%0D%0A        TabSheet ts2 = createTabsheet();%0D%0A        ts2.setHeight(%22100px%22);%0D%0A        ts2.setWidth(%22400px%22);%0D%0A%0D%0A        addComponent(ts1);%0D%0A        addComponent(ts2);%0D%0A    %7D%0D%0A%0D%0A    private TabSheet createTabsheet() %7B%0D%0A        TabSheet tabsheet = new TabSheet();%0D%0A        tabsheet.setSizeUndefined();%0D%0A%0D%0A        Component%5B%5D tab = new Component%5B3%5D;%0D%0A        tab%5B0%5D = new Label(%22This is tab 1%22);%0D%0A        tab%5B0%5D.setIcon(new ThemeResource(%22icons/32/folder-add.png%22));%0D%0A        tab%5B0%5D.setCaption(%22tab number 1%22);%0D%0A        tab%5B1%5D = new TextField(%22This is tab 2%22, %22Contents of tab 2 textfield%22);%0D%0A        tab%5B2%5D = new Label(%22This is tab 3%22);%0D%0A        tab%5B2%5D.setIcon(new ThemeResource(%22icons/16/folder-add.png%22));%0D%0A        tab%5B2%5D.setCaption(%22tab number 3%22);%0D%0A%0D%0A        for (Component c : tab) %7B%0D%0A            tabsheet.addTab(c);%0D%0A        %7D%0D%0A%0D%0A        return tabsheet;%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Test case for a TabSheet containing icons