You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ComboBoxValoDoubleClick.java 1.1KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.vaadin.tests.components.combobox;
  2. import java.util.ArrayList;
  3. import java.util.List;
  4. import com.vaadin.server.VaadinRequest;
  5. import com.vaadin.tests.components.AbstractTestUI;
  6. import com.vaadin.ui.ComboBox;
  7. public class ComboBoxValoDoubleClick extends AbstractTestUI {
  8. // Quite impossible to autotest reliably as there must be a click to open
  9. // the popup and another click during the opening animation to reproduce the
  10. // bug. Manually a double click is just about the right timing.
  11. @Override
  12. protected void setup(VaadinRequest request) {
  13. ComboBox<String> cb = new ComboBox<>("Double-click Me");
  14. List<String> items = new ArrayList<>();
  15. for (int i = 0; i < 100; i++) {
  16. items.add("Item-" + i);
  17. }
  18. cb.setItems(items);
  19. addComponent(cb);
  20. }
  21. @Override
  22. public String getTestDescription() {
  23. return "ComboBox should remain usable even after double-clicking (affects only Valo theme with $v-overlay-animate-in).";
  24. }
  25. @Override
  26. protected Integer getTicketNumber() {
  27. return 17903;
  28. }
  29. }