@@ -57,9 +57,6 @@ ruleTester.run('role-supports-aria-props', rule, {
57
57
{ code : '<a href="#" aria-owns />' } ,
58
58
{ code : '<a href="#" aria-relevant />' } ,
59
59
60
- // this will have global
61
- { code : '<a aria-checked />' } ,
62
-
63
60
// AREA TESTS - implicit role is `link`
64
61
{ code : '<area href="#" aria-expanded />' } ,
65
62
{ code : '<area href="#" aria-atomic />' } ,
@@ -78,9 +75,6 @@ ruleTester.run('role-supports-aria-props', rule, {
78
75
{ code : '<area href="#" aria-owns />' } ,
79
76
{ code : '<area href="#" aria-relevant />' } ,
80
77
81
- // this will have global
82
- { code : '<area aria-checked />' } ,
83
-
84
78
// LINK TESTS - implicit role is `link`
85
79
{ code : '<link href="#" aria-expanded />' } ,
86
80
{ code : '<link href="#" aria-atomic />' } ,
@@ -348,6 +342,14 @@ ruleTester.run('role-supports-aria-props', rule, {
348
342
349
343
invalid : [
350
344
// implicit basic checks
345
+ {
346
+ code : '<area aria-checked />' ,
347
+ errors : [ getErrorMessage ( 'aria-checked' , 'generic' ) ] ,
348
+ } ,
349
+ {
350
+ code : '<a aria-checked />' ,
351
+ errors : [ getErrorMessage ( 'aria-checked' , 'generic' ) ] ,
352
+ } ,
351
353
{
352
354
code : '<a href="#" aria-checked />' ,
353
355
errors : [ getErrorMessage ( 'aria-checked' , 'link' ) ] ,
0 commit comments