@@ -116,35 +116,35 @@ describe('ReactFocusTable', () => {
116
116
const a1 = createEventTarget ( buttons [ 0 ] ) ;
117
117
a1 . focus ( ) ;
118
118
a1 . keydown ( {
119
- key : 'RightArrow ' ,
119
+ key : 'ArrowRight ' ,
120
120
} ) ;
121
121
expect ( document . activeElement . textContent ) . toBe ( 'A2' ) ;
122
122
123
123
const a2 = createEventTarget ( document . activeElement ) ;
124
124
a2 . keydown ( {
125
- key : 'DownArrow ' ,
125
+ key : 'ArrowDown ' ,
126
126
} ) ;
127
127
expect ( document . activeElement . textContent ) . toBe ( 'B2' ) ;
128
128
129
129
const b2 = createEventTarget ( document . activeElement ) ;
130
130
b2 . keydown ( {
131
- key : 'LeftArrow ' ,
131
+ key : 'ArrowLeft ' ,
132
132
} ) ;
133
133
expect ( document . activeElement . textContent ) . toBe ( 'B1' ) ;
134
134
135
135
const b1 = createEventTarget ( document . activeElement ) ;
136
136
b1 . keydown ( {
137
- key : 'DownArrow ' ,
137
+ key : 'ArrowDown ' ,
138
138
} ) ;
139
139
expect ( document . activeElement . textContent ) . toBe ( 'C1' ) ;
140
140
141
141
const c1 = createEventTarget ( document . activeElement ) ;
142
142
c1 . keydown ( {
143
- key : 'DownArrow ' ,
143
+ key : 'ArrowDown ' ,
144
144
} ) ;
145
145
expect ( document . activeElement . textContent ) . toBe ( 'C1' ) ;
146
146
c1 . keydown ( {
147
- key : 'UpArrow ' ,
147
+ key : 'ArrowUp ' ,
148
148
} ) ;
149
149
expect ( document . activeElement . textContent ) . toBe ( 'B1' ) ;
150
150
} ) ;
@@ -201,55 +201,55 @@ describe('ReactFocusTable', () => {
201
201
let a1 = createEventTarget ( buttons [ 0 ] ) ;
202
202
a1 . focus ( ) ;
203
203
a1 . keydown ( {
204
- key : 'RightArrow ' ,
204
+ key : 'ArrowRight ' ,
205
205
} ) ;
206
206
expect ( document . activeElement . textContent ) . toBe ( 'A2' ) ;
207
207
208
208
let a2 = createEventTarget ( document . activeElement ) ;
209
209
a2 . keydown ( {
210
- key : 'RightArrow ' ,
210
+ key : 'ArrowRight ' ,
211
211
} ) ;
212
212
expect ( document . activeElement . textContent ) . toBe ( 'A3' ) ;
213
213
214
214
let a3 = createEventTarget ( document . activeElement ) ;
215
215
a3 . keydown ( {
216
- key : 'RightArrow ' ,
216
+ key : 'ArrowRight ' ,
217
217
} ) ;
218
218
expect ( document . activeElement . textContent ) . toBe ( 'A1' ) ;
219
219
220
220
a1 = createEventTarget ( document . activeElement ) ;
221
221
a1 . keydown ( {
222
- key : 'RightArrow ' ,
222
+ key : 'ArrowRight ' ,
223
223
} ) ;
224
224
expect ( document . activeElement . textContent ) . toBe ( 'A2' ) ;
225
225
226
226
a2 = createEventTarget ( document . activeElement ) ;
227
227
a2 . keydown ( {
228
- key : 'RightArrow ' ,
228
+ key : 'ArrowRight ' ,
229
229
} ) ;
230
230
expect ( document . activeElement . textContent ) . toBe ( 'A3' ) ;
231
231
232
232
a3 = createEventTarget ( document . activeElement ) ;
233
233
a3 . keydown ( {
234
- key : 'RightArrow ' ,
234
+ key : 'ArrowRight ' ,
235
235
} ) ;
236
236
expect ( document . activeElement . textContent ) . toBe ( 'A1' ) ;
237
237
238
238
a1 = createEventTarget ( document . activeElement ) ;
239
239
a1 . keydown ( {
240
- key : 'RightArrow ' ,
240
+ key : 'ArrowRight ' ,
241
241
} ) ;
242
242
expect ( document . activeElement . textContent ) . toBe ( 'A2' ) ;
243
243
244
244
a2 = createEventTarget ( document . activeElement ) ;
245
245
a2 . keydown ( {
246
- key : 'RightArrow ' ,
246
+ key : 'ArrowRight ' ,
247
247
} ) ;
248
248
expect ( document . activeElement . textContent ) . toBe ( 'A3' ) ;
249
249
250
250
a3 = createEventTarget ( document . activeElement ) ;
251
251
a3 . keydown ( {
252
- key : 'RightArrow ' ,
252
+ key : 'ArrowRight ' ,
253
253
} ) ;
254
254
expect ( document . activeElement . textContent ) . toBe ( 'A3' ) ;
255
255
} ) ;
0 commit comments