@@ -0,0 +1,1453 @@
+package com.vaadin.tests.components.window;%0A%0Aimport com.vaadin.tests.components.TestBase;%0Aimport com.vaadin.ui.Button;%0Aimport com.vaadin.ui.HorizontalLayout;%0Aimport com.vaadin.ui.TextField;%0Aimport com.vaadin.ui.Window;%0A%0Apublic class UndefinedWidthSubWindow extends TestBase %7B%0A%0A    @Override%0A    protected String getDescription() %7B%0A        return %22Two windows should be shown. The width of the one in the upper left corner should be adjusted according to the contents. The centered windows width should be set according to the caption and the second textfield should be clipped.%22;%0A    %7D%0A%0A    @Override%0A    protected Integer getTicketNumber() %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    protected void setup() %7B%0A        Window dialog = new Window(%22Dialog - width defined by contents%22,%0A                new HorizontalLayout());%0A        dialog.getContent().setSizeUndefined();%0A        dialog.addComponent(new TextField(%22Field 1%22));%0A        dialog.addComponent(new TextField(%22Field 2%22));%0A        dialog.addComponent(new Button(%22Ok%22));%0A%0A        getMainWindow().addWindow(dialog);%0A%0A        Window dialog2 = new Window(%22Dialog - width defined by caption%22);%0A        dialog2.addComponent(new TextField(%22Field 1%22));%0A%0A        TextField tf2 = new TextField(%22Field 2%22);%0A        tf2.setWidth(%22500px%22);%0A        dialog2.addComponent(tf2);%0A        dialog2.addComponent(new Button(%22Ok%22));%0A%0A        dialog2.center();%0A        getMainWindow().addWindow(dialog2);%0A    %7D%0A%0A%7D%0A

Test case for undefined wide sub windows