Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit 389956e

Browse files
committed
Add test for initialization
1 parent d46cc13 commit 389956e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ describe('details-dialog-element', function() {
4545
document.body.innerHTML = ''
4646
})
4747

48+
it('initializes', function() {
49+
assert.equal(summary.getAttribute('role'), 'button')
50+
assert.equal(dialog.getAttribute('role'), 'dialog')
51+
assert.equal(dialog.getAttribute('aria-modal'), 'true')
52+
})
53+
4854
it('toggles open', function() {
4955
assert(!details.open)
5056
dialog.toggle(true)

0 commit comments

Comments
 (0)