@@ -0,0 +1,1736 @@
+package com.itmill.toolkit.tests.components.combobox;%0A%0Aimport java.util.Date;%0A%0Aimport com.itmill.toolkit.data.Item;%0Aimport com.itmill.toolkit.terminal.Resource;%0Aimport com.itmill.toolkit.terminal.ThemeResource;%0Aimport com.itmill.toolkit.tests.components.TestBase;%0Aimport com.itmill.toolkit.ui.ComboBox;%0A%0Apublic class ComboBoxLargeIcons extends TestBase %7B%0A%0A    @Override%0A    protected Integer getTicketNumber() %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    protected String getDescription() %7B%0A        return %22All items in the Combobox has large icons. The size of the dropdown should fit the contents, also when changing pages. The size of the shadow behind the dropdown must also be correctly sized. Note that the image URL change for every restart to keep the browser from using cached images.%22;%0A    %7D%0A%0A    @Override%0A    protected void setup() %7B%0A        ComboBox cb = new ComboBox();%0A        cb.addContainerProperty(%22icon%22, Resource.class, null);%0A        cb.setItemIconPropertyId(%22icon%22);%0A        getLayout().addComponent(cb);%0A        cb.setNullSelectionAllowed(false);%0A        String%5B%5D icons = new String%5B%5D %7B %22folder-add%22, %22folder-delete%22,%0A                %22arrow-down%22, %22arrow-left%22, %22arrow-right%22, %22arrow-up%22,%0A                %22document-add%22, %22document-delete%22, %22document-doc%22,%0A                %22document-edit%22, %22document-image%22, %22document-pdf%22,%0A                %22document-ppt%22, %22document-txt%22, %22document-web%22, %22document-xls%22,%0A                %22document%22 %7D;%0A        for (String icon : icons) %7B%0A            Item item = cb.addItem(new Object());%0A            item.getItemProperty(%22icon%22).setValue(%0A                    new ThemeResource(%22icons/64/%22 + icon + %22.png?%22%0A                            + new Date().getTime()));%0A        %7D%0A%0A    %7D%0A%7D%0A

Test case for ComboBox containing large icons