@@ -94,6 +94,7 @@ ruleTester.run('role-supports-aria-props', rule, {
94
94
{ code : '<a href="#" aria-disabled />' } ,
95
95
{ code : '<a href="#" aria-dropeffect />' } ,
96
96
{ code : '<a href="#" aria-flowto />' } ,
97
+ { code : '<a href="#" aria-haspopup />' } ,
97
98
{ code : '<a href="#" aria-grabbed />' } ,
98
99
{ code : '<a href="#" aria-hidden />' } ,
99
100
{ code : '<a href="#" aria-label />' } ,
@@ -115,6 +116,7 @@ ruleTester.run('role-supports-aria-props', rule, {
115
116
{ code : '<area href="#" aria-dropeffect />' } ,
116
117
{ code : '<area href="#" aria-flowto />' } ,
117
118
{ code : '<area href="#" aria-grabbed />' } ,
119
+ { code : '<area href="#" aria-haspopup />' } ,
118
120
{ code : '<area href="#" aria-hidden />' } ,
119
121
{ code : '<area href="#" aria-label />' } ,
120
122
{ code : '<area href="#" aria-labelledby />' } ,
@@ -136,6 +138,7 @@ ruleTester.run('role-supports-aria-props', rule, {
136
138
{ code : '<link href="#" aria-flowto />' } ,
137
139
{ code : '<link href="#" aria-grabbed />' } ,
138
140
{ code : '<link href="#" aria-hidden />' } ,
141
+ { code : '<link href="#" aria-haspopup />' } ,
139
142
{ code : '<link href="#" aria-label />' } ,
140
143
{ code : '<link href="#" aria-labelledby />' } ,
141
144
{ code : '<link href="#" aria-live />' } ,
@@ -552,22 +555,10 @@ ruleTester.run('role-supports-aria-props', rule, {
552
555
code : '<link href="#" aria-invalid />' ,
553
556
errors : [ errorMessage ( 'aria-invalid' , 'link' , 'link' , true ) ] ,
554
557
} ,
555
- {
556
- code : '<link href="#" aria-haspopup />' ,
557
- errors : [ errorMessage ( 'aria-haspopup' , 'link' , 'link' , true ) ] ,
558
- } ,
559
558
{
560
559
code : '<area href="#" aria-invalid />' ,
561
560
errors : [ errorMessage ( 'aria-invalid' , 'link' , 'area' , true ) ] ,
562
561
} ,
563
- {
564
- code : '<area href="#" aria-haspopup />' ,
565
- errors : [ errorMessage ( 'aria-haspopup' , 'link' , 'area' , true ) ] ,
566
- } ,
567
- {
568
- code : '<a href="#" aria-haspopup />' ,
569
- errors : [ errorMessage ( 'aria-haspopup' , 'link' , 'a' , true ) ] ,
570
- } ,
571
562
{
572
563
code : '<a href="#" aria-invalid />' ,
573
564
errors : [ errorMessage ( 'aria-invalid' , 'link' , 'a' , true ) ] ,
0 commit comments