aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/tests/components/combobox/ComboBoxLargeIcons.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/tests/components/combobox/ComboBoxLargeIcons.java')
-rw-r--r--src/com/vaadin/tests/components/combobox/ComboBoxLargeIcons.java44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/com/vaadin/tests/components/combobox/ComboBoxLargeIcons.java b/src/com/vaadin/tests/components/combobox/ComboBoxLargeIcons.java
deleted file mode 100644
index 1992c12943..0000000000
--- a/src/com/vaadin/tests/components/combobox/ComboBoxLargeIcons.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.vaadin.tests.components.combobox;
-
-import java.util.Date;
-
-import com.vaadin.data.Item;
-import com.vaadin.terminal.Resource;
-import com.vaadin.terminal.ThemeResource;
-import com.vaadin.tests.components.TestBase;
-import com.vaadin.ui.ComboBox;
-
-public class ComboBoxLargeIcons extends TestBase {
-
- @Override
- protected Integer getTicketNumber() {
- return null;
- }
-
- @Override
- protected String getDescription() {
- return "<p>All items in the Combobox has large icons. The size of the dropdown should fit the contents, also when changing pages. The height of the dropdown shouldn't exceed the browser's viewport, but fewer items should be visible then.</p><p>The size of the shadow behind the dropdown must also be correctly sized.</p><p>Note that the image URL change for every restart to keep the browser from using cached images.</p>";
- }
-
- @Override
- protected void setup() {
- ComboBox cb = new ComboBox();
- cb.addContainerProperty("icon", Resource.class, null);
- cb.setItemIconPropertyId("icon");
- getLayout().addComponent(cb);
- cb.setNullSelectionAllowed(false);
- String[] icons = new String[] { "folder-add", "folder-delete",
- "arrow-down", "arrow-left", "arrow-right", "arrow-up",
- "document-add", "document-delete", "document-doc",
- "document-edit", "document-image", "document-pdf",
- "document-ppt", "document-txt", "document-web", "document-xls",
- "document" };
- for (String icon : icons) {
- Item item = cb.addItem(new Object());
- item.getItemProperty("icon").setValue(
- new ThemeResource("icons/64/" + icon + ".png?"
- + new Date().getTime()));
- }
-
- }
-}