Skip to content

Commit f24fb85

Browse files
committed
Add test for control key
1 parent f1dd8ee commit f24fb85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ describe('combobox-nav', function() {
171171
assert.equal(options[0].getAttribute('aria-selected'), 'true')
172172
assert.equal(input.getAttribute('aria-activedescendant'), 'baymax')
173173

174+
press(input, 'Control', true)
175+
assert.equal(options[0].getAttribute('aria-selected'), 'true', 'Selection stays on modifier keydown')
176+
assert.equal(input.getAttribute('aria-activedescendant'), 'baymax', 'Selection stays on modifier keydown')
177+
174178
press(input, 'Backspace')
175179
assert(!list.querySelector('[aria-selected=true]'), 'Nothing should be selected')
176180
assert(!input.hasAttribute('aria-activedescendant'), 'Nothing should be selected')

0 commit comments

Comments
 (0)