Skip to content

Commit a46916b

Browse files
committed
Add test for aria-haspopup
1 parent 0b1e7f5 commit a46916b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ describe('combobox-nav', function() {
3333
assert.equal(input.getAttribute('aria-expanded'), 'false')
3434
assert.equal(input.getAttribute('aria-controls'), 'list-id')
3535
assert.equal(input.getAttribute('aria-autocomplete'), 'list')
36+
assert.equal(input.getAttribute('aria-haspopup'), 'listbox')
3637

3738
comboboxNav.start(input)
3839
assert.equal(input.getAttribute('aria-expanded'), 'true')
@@ -53,6 +54,7 @@ describe('combobox-nav', function() {
5354
assert(!input.hasAttribute('aria-expanded'))
5455
assert(!input.hasAttribute('aria-controls'))
5556
assert(!input.hasAttribute('aria-autocomplete'))
57+
assert(!input.hasAttribute('aria-haspopup'))
5658
})
5759
})
5860

0 commit comments

Comments
 (0)