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