From aff3c32ee1f0b81ecea613057e95a40d8edc6b03 Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 3 Apr 2015 15:57:57 -0400 Subject: Autocomplete: Convert tests to new infrastructure Ref #10119 Ref gh-1528 --- tests/unit/autocomplete/autocomplete.html | 28 ++----------------------- tests/unit/autocomplete/autocomplete_common.js | 9 +++++++- tests/unit/autocomplete/autocomplete_core.js | 7 +++++-- tests/unit/autocomplete/autocomplete_events.js | 7 +++++-- tests/unit/autocomplete/autocomplete_methods.js | 11 ++++++---- tests/unit/autocomplete/autocomplete_options.js | 7 +++++-- 6 files changed, 32 insertions(+), 37 deletions(-) diff --git a/tests/unit/autocomplete/autocomplete.html b/tests/unit/autocomplete/autocomplete.html index fa3527dac..90c8e8e97 100644 --- a/tests/unit/autocomplete/autocomplete.html +++ b/tests/unit/autocomplete/autocomplete.html @@ -4,32 +4,8 @@ jQuery UI Autocomplete Test Suite - - - - - - - - - - - - - - - + + diff --git a/tests/unit/autocomplete/autocomplete_common.js b/tests/unit/autocomplete/autocomplete_common.js index b82ec1d1c..5ee7cdda0 100644 --- a/tests/unit/autocomplete/autocomplete_common.js +++ b/tests/unit/autocomplete/autocomplete_common.js @@ -1,4 +1,9 @@ -TestHelpers.commonWidgetTests( "autocomplete", { +define( [ + "lib/common", + "ui/autocomplete" +], function( common ) { + +common.testWidget( "autocomplete", { defaults: { appendTo: null, autoFocus: false, @@ -28,3 +33,5 @@ TestHelpers.commonWidgetTests( "autocomplete", { select: null } }); + +} ); diff --git a/tests/unit/autocomplete/autocomplete_core.js b/tests/unit/autocomplete/autocomplete_core.js index 4787011a1..d25328dd5 100644 --- a/tests/unit/autocomplete/autocomplete_core.js +++ b/tests/unit/autocomplete/autocomplete_core.js @@ -1,4 +1,7 @@ -(function( $ ) { +define( [ + "jquery", + "ui/autocomplete" +], function( $ ) { module( "autocomplete: core" ); @@ -395,4 +398,4 @@ asyncTest( "Search if the user retypes the same value (#7434)", function() { }); }); -}( jQuery ) ); +} ); diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js index a7c366800..606562aa9 100644 --- a/tests/unit/autocomplete/autocomplete_events.js +++ b/tests/unit/autocomplete/autocomplete_events.js @@ -1,4 +1,7 @@ -(function( $ ) { +define( [ + "jquery", + "ui/autocomplete" +], function( $ ) { module( "autocomplete: events" ); @@ -179,4 +182,4 @@ asyncTest( "blur during remote search", function() { ac.val( "ro" ).keydown(); }); -}( jQuery ) ); +} ); diff --git a/tests/unit/autocomplete/autocomplete_methods.js b/tests/unit/autocomplete/autocomplete_methods.js index bbd016ff2..32080207a 100644 --- a/tests/unit/autocomplete/autocomplete_methods.js +++ b/tests/unit/autocomplete/autocomplete_methods.js @@ -1,10 +1,13 @@ -(function( $ ) { +define( [ + "jquery", + "ui/autocomplete" +], function( $ ) { module( "autocomplete: methods" ); -test( "destroy", function() { +test( "destroy", function( assert ) { expect( 1 ); - domEqual( "#autocomplete", function() { + assert.domEqual( "#autocomplete", function() { $( "#autocomplete" ).autocomplete().autocomplete( "destroy" ); }); }); @@ -42,4 +45,4 @@ test( "widget", function( assert ) { assert.hasClasses( widgetElement, "ui-menu" ); }); -}( jQuery ) ); +} ); diff --git a/tests/unit/autocomplete/autocomplete_options.js b/tests/unit/autocomplete/autocomplete_options.js index af9a424e9..a07a8d636 100644 --- a/tests/unit/autocomplete/autocomplete_options.js +++ b/tests/unit/autocomplete/autocomplete_options.js @@ -1,4 +1,7 @@ -(function( $ ) { +define( [ + "jquery", + "ui/autocomplete" +], function( $ ) { module( "autocomplete: options" ); @@ -311,4 +314,4 @@ test( "source, update after init", function() { equal( menu.find( ".ui-menu-item" ).text(), "php" ); }); -}( jQuery ) ); +} ); -- cgit v1.2.3 /vaadin8-sass-valo-only Vaadin 6, 7, 8 is a Java framework for modern Java web applications: https://github.com/vaadin/frameworkwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/application/application-resources.asciidoc
blob: 5c3b667c71b1d7e7d236e3ee74f6fc49f361c0e6 (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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227