blob: 190c822865b7d9b2931e4dc73b6c77caa5290f6c (
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
37
38
39
40
41
42
|
package com.vaadin.tests.components.combobox;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.tests.util.ItemDataProvider;
import com.vaadin.ui.ComboBox;
/**
* Tests mousewheel handling in ComboBox.
*
* @author Vaadin Ltd
*/
public class ComboBoxMousewheel extends AbstractReindeerTestUI {
@Override
protected void setup(VaadinRequest request) {
addComponent(createComboBox("Paged"));
ComboBox<String> cb = createComboBox("Unpaged");
cb.setPageLength(0);
addComponent(cb);
}
private ComboBox<String> createComboBox(String caption) {
ComboBox<String> cb = new ComboBox<>(caption);
cb.setDataProvider(new ItemDataProvider(100));
cb.setId(caption);
return cb;
}
@Override
protected String getTestDescription() {
return "ComboBox scrolling should be possible to both directions on Paged + IE as well.<br>"
+ "IE should not move paging up when scrolled down.";
}
@Override
protected Integer getTicketNumber() {
return 16918;
}
}
|