@@ -0,0 +1,1014 @@
+package com.vaadin.tests.components.tabsheet;%0D%0A%0D%0Aimport com.vaadin.tests.components.TestBase;%0D%0Aimport com.vaadin.ui.Button;%0D%0Aimport com.vaadin.ui.Label;%0D%0Aimport com.vaadin.ui.TabSheet;%0D%0Aimport com.vaadin.ui.Button.ClickEvent;%0D%0A%0D%0Apublic class TabSheetMinimal extends TestBase %7B%0D%0A%0D%0A    int index = 1;%0D%0A    TabSheet ts = new TabSheet();%0D%0A%0D%0A    @Override%0D%0A    protected void setup() %7B%0D%0A        ts.setStyleName(%22minimal%22);%0D%0A        Button b = new Button(%22Add a tab%22, new Button.ClickListener() %7B%0D%0A%0D%0A            public void buttonClick(ClickEvent event) %7B%0D%0A                ts.addTab(new Label(%22%22 + index), %22Tab %22 + index, null);%0D%0A                index++;%0D%0A%0D%0A            %7D%0D%0A        %7D);%0D%0A        addComponent(ts);%0D%0A        addComponent(b);%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    protected String getDescription() %7B%0D%0A        return %22Adding tabs to a 'minimal' style TabSheet work properly even if the TabSheet is initially empty%22;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    protected Integer getTicketNumber() %7B%0D%0A        return 4227;%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

Test case for #4227