/
DropDownFieldTest.java
103 lines (84 loc) · 3.33 KB
/
DropDownFieldTest.java
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
* OpenFaces - JSF Component Library 2.0
* Copyright (C) 2007-2013, TeamDev Ltd.
* licensing@openfaces.org
* Unless agreed in writing the contents of this file are subject to
* the GNU Lesser General Public License Version 2.1 (the "LGPL" License).
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* Please visit http://openfaces.org/licensing/ for more details.
*/
package org.openfaces.component.dropdownfield;
import org.junit.Ignore;
import org.junit.Test;
/**
* @author Darya Shumilina
*/
public class DropDownFieldTest extends BaseDropDownTestCase {
@Test
public void testReRenderThroughA4J() {
checkReRenderingThroughA4J("/components/dropdown/dropDown_a4j.jsf");
}
@Test
public void testListCorrectness() {
checkListCorrectness("/components/dropdown/dropDownBaseFunctionality.jsf", true);
}
@Test
public void testManualOpeningAndClosing() {
checkManualListOpeningAndClosing("/components/dropdown/dropDownBaseFunctionality.jsf", true);
}
@Test
public void testValueSelectionFromList() {
checkValueSelectionFromList("/components/dropdown/dropDownBaseFunctionality.jsf", true);
}
@Test
public void testTypedValue() {
checkTypedValue("/components/dropdown/dropDownBaseFunctionality.jsf");
}
@Test
@Ignore // todo: temporarily ignored because of failures in 2.x branch only
public void testAjaxBasedSuggestion() {
checkAjaxBasedSuggestion("/components/dropdown/dropDownAjaxSuggestion.jsf");
}
@Test
public void testClientBasedSuggestion() {
checkClientBasedSuggestion("/components/dropdown/dropDownClientSuggestion.jsf");
}
@Test
public void testAutoCompletionFeature() {
checkAutoCompletionFeature("/components/dropdown/dropDownClientSuggestion.jsf");
}
@Test
public void testStyling() {
checkStyles(false, true, false, "/components/dropdown/dropDownStyling.jsf", true);
checkStyles(true, false, false, "/components/dropdown/dropDownStyling.jsf", true);
checkStyles(false, false, true, "/components/dropdown/dropDownStyling.jsf", true);
checkStyles(true, true, true, "/components/dropdown/dropDownStyling.jsf", true);
}
@Test
public void testClintSideAPI() {
checkClintSideAPI("/components/dropdown/dropDownClientSideAPI.jsf");
}
@Test
public void testValueChangeListener() {
checkValueChangeListener("/components/dropdown/dropDownValueChangeListener.jsf");
}
@Test
@Ignore
public void testNoCashingHighlight() {
checkNoCachingHighlight("/components/dropdown/dropDownAjaxSuggestion.jsf");
}
@Test
public void testAfterRenderHighlight() {
checkAfterRenderHighlight("/components/dropdown/dropDownAjaxSuggestion.jsf");
}
@Test
public void testNoCashingAutoComplete() {
checkNoCashingAutoComplete("/components/dropdown/dropDownAjaxSuggestion.jsf");
}
@Test
public void testNoFieldCleanOnCustomInput() {
checkNoFieldCleanOnCustomInput("/components/dropdown/dropDownAjaxSuggestion.jsf");
}
}