Skip to content

Commit 063dbcc

Browse files
Add test
1 parent abcb884 commit 063dbcc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/unit/dom/matchers/has_description_test.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,16 @@ void main() {
3131
{},
3232
react.button({
3333
'aria-label': 'Close',
34-
'aria-describedby': 'description-close',
34+
// Use a special character to verify that it is escaped correctly in hasDescription.
35+
'aria-describedby': 'r:description-close',
3536
}, 'X'),
3637
react.button({
3738
'aria-label': 'Has Multiple Descriptions',
38-
'aria-describedby': 'description-close some-other-description',
39+
'aria-describedby': 'r:description-close some-other-description',
3940
}, 'X'),
4041
react.button({}, 'Delete'),
4142
react.button({'aria-describedby': 'not-found'}, 'Has id not found'),
42-
react.div({'id': 'description-close'}, 'Closing will discard any changes'),
43+
react.div({'id': 'r:description-close'}, 'Closing will discard any changes'),
4344
react.div({'id': 'some-other-description'}, 'Some other description'),
4445
));
4546
});

0 commit comments

Comments
 (0)