@@ -14,7 +14,7 @@ function isFocusable( selector, msg ) {
14
14
}
15
15
16
16
function isNotFocusable ( selector , msg ) {
17
- QUnit . push ( $ ( selector ) . length && ! $ ( selector ) . is ( ":focusable" ) , null , null ,
17
+ QUnit . push ( $ ( selector ) . length && ! $ ( selector ) . is ( ":focusable" ) , null , null ,
18
18
msg + " - selector " + selector + " is not focusable" ) ;
19
19
}
20
20
@@ -85,7 +85,7 @@ test( "data", function() {
85
85
86
86
element = $ ( "<div>" ) . data ( "test" , function ( ) { } ) ;
87
87
shouldHaveData ( "data set to function" ) ;
88
- } ) ;
88
+ } ) ;
89
89
90
90
test ( "focusable - visible, enabled elements" , function ( ) {
91
91
expect ( 18 ) ;
@@ -108,7 +108,7 @@ test( "focusable - visible, enabled elements", function() {
108
108
isNotFocusable ( "#visibleAncestor-div" , "div" ) ;
109
109
isFocusable ( "#visibleAncestor-spanWithTabindex" , "span with tabindex" ) ;
110
110
isFocusable ( "#visibleAncestor-divWithNegativeTabindex" , "div with tabindex" ) ;
111
- } ) ;
111
+ } ) ;
112
112
113
113
test ( "focusable - disabled elements" , function ( ) {
114
114
expect ( 9 ) ;
@@ -122,7 +122,7 @@ test( "focusable - disabled elements", function() {
122
122
isNotFocusable ( "#disabledElement-button" , "button" ) ;
123
123
isNotFocusable ( "#disabledElement-select" , "select" ) ;
124
124
isNotFocusable ( "#disabledElement-textarea" , "textarea" ) ;
125
- } ) ;
125
+ } ) ;
126
126
127
127
test ( "focusable - hidden styles" , function ( ) {
128
128
expect ( 8 ) ;
@@ -138,7 +138,7 @@ test( "focusable - hidden styles", function() {
138
138
139
139
isNotFocusable ( "#displayNone-span" , "span with tabindex, display: none" ) ;
140
140
isNotFocusable ( "#visibilityHidden-span" , "span with tabindex, visibility: hidden" ) ;
141
- } ) ;
141
+ } ) ;
142
142
143
143
test ( "focusable - natively focusable with various tabindex" , function ( ) {
144
144
expect ( 4 ) ;
@@ -147,7 +147,7 @@ test( "focusable - natively focusable with various tabindex", function() {
147
147
isFocusable ( "#inputTabindex10" , "input, tabindex 10" ) ;
148
148
isFocusable ( "#inputTabindex-1" , "input, tabindex -1" ) ;
149
149
isFocusable ( "#inputTabindex-50" , "input, tabindex -50" ) ;
150
- } ) ;
150
+ } ) ;
151
151
152
152
test ( "focusable - not natively focusable with various tabindex" , function ( ) {
153
153
expect ( 4 ) ;
@@ -156,21 +156,21 @@ test( "focusable - not natively focusable with various tabindex", function() {
156
156
isFocusable ( "#spanTabindex10" , "span, tabindex 10" ) ;
157
157
isFocusable ( "#spanTabindex-1" , "span, tabindex -1" ) ;
158
158
isFocusable ( "#spanTabindex-50" , "span, tabindex -50" ) ;
159
- } ) ;
159
+ } ) ;
160
160
161
161
test ( "focusable - area elements" , function ( ) {
162
162
expect ( 3 ) ;
163
163
164
164
isFocusable ( "#areaCoordsHref" , "coords and href" ) ;
165
165
isFocusable ( "#areaNoCoordsHref" , "href but no coords" ) ;
166
166
isNotFocusable ( "#areaNoImg" , "not associated with an image" ) ;
167
- } ) ;
167
+ } ) ;
168
168
169
169
test ( "focusable - dimensionless parent with overflow" , function ( ) {
170
170
expect ( 1 ) ;
171
171
172
172
isFocusable ( "#dimensionlessParent" , "input" ) ;
173
- } ) ;
173
+ } ) ;
174
174
175
175
test ( "tabbable - visible, enabled elements" , function ( ) {
176
176
expect ( 18 ) ;
@@ -193,7 +193,7 @@ test( "tabbable - visible, enabled elements", function() {
193
193
isNotTabbable ( "#visibleAncestor-div" , "div" ) ;
194
194
isTabbable ( "#visibleAncestor-spanWithTabindex" , "span with tabindex" ) ;
195
195
isNotTabbable ( "#visibleAncestor-divWithNegativeTabindex" , "div with tabindex" ) ;
196
- } ) ;
196
+ } ) ;
197
197
198
198
test ( "tabbable - disabled elements" , function ( ) {
199
199
expect ( 9 ) ;
@@ -207,7 +207,7 @@ test( "tabbable - disabled elements", function() {
207
207
isNotTabbable ( "#disabledElement-button" , "button" ) ;
208
208
isNotTabbable ( "#disabledElement-select" , "select" ) ;
209
209
isNotTabbable ( "#disabledElement-textarea" , "textarea" ) ;
210
- } ) ;
210
+ } ) ;
211
211
212
212
test ( "tabbable - hidden styles" , function ( ) {
213
213
expect ( 8 ) ;
@@ -223,7 +223,7 @@ test( "tabbable - hidden styles", function() {
223
223
224
224
isNotTabbable ( "#displayNone-span" , "span with tabindex, display: none" ) ;
225
225
isNotTabbable ( "#visibilityHidden-span" , "span with tabindex, visibility: hidden" ) ;
226
- } ) ;
226
+ } ) ;
227
227
228
228
test ( "tabbable - natively tabbable with various tabindex" , function ( ) {
229
229
expect ( 4 ) ;
@@ -232,7 +232,7 @@ test( "tabbable - natively tabbable with various tabindex", function() {
232
232
isTabbable ( "#inputTabindex10" , "input, tabindex 10" ) ;
233
233
isNotTabbable ( "#inputTabindex-1" , "input, tabindex -1" ) ;
234
234
isNotTabbable ( "#inputTabindex-50" , "input, tabindex -50" ) ;
235
- } ) ;
235
+ } ) ;
236
236
237
237
test ( "tabbable - not natively tabbable with various tabindex" , function ( ) {
238
238
expect ( 4 ) ;
@@ -241,21 +241,21 @@ test( "tabbable - not natively tabbable with various tabindex", function() {
241
241
isTabbable ( "#spanTabindex10" , "span, tabindex 10" ) ;
242
242
isNotTabbable ( "#spanTabindex-1" , "span, tabindex -1" ) ;
243
243
isNotTabbable ( "#spanTabindex-50" , "span, tabindex -50" ) ;
244
- } ) ;
244
+ } ) ;
245
245
246
246
test ( "tabbable - area elements" , function ( ) {
247
247
expect ( 3 ) ;
248
248
249
249
isTabbable ( "#areaCoordsHref" , "coords and href" ) ;
250
250
isTabbable ( "#areaNoCoordsHref" , "href but no coords" ) ;
251
251
isNotTabbable ( "#areaNoImg" , "not associated with an image" ) ;
252
- } ) ;
252
+ } ) ;
253
253
254
254
test ( "tabbable - dimensionless parent with overflow" , function ( ) {
255
255
expect ( 1 ) ;
256
256
257
257
isTabbable ( "#dimensionlessParent" , "input" ) ;
258
- } ) ;
258
+ } ) ;
259
259
260
260
test ( "escapeSelector" , function ( ) {
261
261
expect ( 1 ) ;
0 commit comments