@@ -0,0 +1,1165 @@
+package com.vaadin.tests.components.window;%0A%0Aimport com.vaadin.tests.components.TestBase;%0Aimport com.vaadin.ui.Button;%0Aimport com.vaadin.ui.Button.ClickEvent;%0Aimport com.vaadin.ui.Button.ClickListener;%0A%0Apublic class WindowStyleNames extends TestBase %7B%0A%0A    @Override%0A    protected String getDescription() %7B%0A        return %22Click 'add style' to add a 'new' style to the window. The 'old' style should disappear and only the 'new' style should be set. Verify using e.g. firebug%22;%0A    %7D%0A%0A    @Override%0A    protected Integer getTicketNumber() %7B%0A        return 3059;%0A    %7D%0A%0A    @Override%0A    protected void setup() %7B%0A        setWindowStyle(%22old%22);%0A        addComponent(new Button(%22Set style to 'new'%22, new ClickListener() %7B%0A%0A            public void buttonClick(ClickEvent event) %7B%0A                setWindowStyle(%22new%22);%0A            %7D%0A%0A        %7D));%0A%0A        addComponent(new Button(%22Set style to 'custom'%22, new ClickListener() %7B%0A%0A            public void buttonClick(ClickEvent event) %7B%0A                setWindowStyle(%22custom%22);%0A            %7D%0A%0A        %7D));%0A%0A    %7D%0A%0A    protected void setWindowStyle(String string) %7B%0A        getMainWindow().setStyleName(string);%0A%0A    %7D%0A%0A%7D%0A

Test case for #3059