Skip to content

Commit

Permalink
unrelated validation updates
Browse files Browse the repository at this point in the history
update some missing aria attributes for the specified roles, unrelated to the overall img role tests
  • Loading branch information
scottaohara authored Oct 3, 2023
1 parent 5cae232 commit fad9632
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tests/img-allowed-roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h3>Test 1</h3>
</p>


<div class="testcase">
<div class="testcase" id=tc1>
<p>with alt</p>
<p><img src=# alt=image role=img></p>
<p><img src=# alt=button role=button tabindex=0></p>
Expand All @@ -78,12 +78,12 @@ <h3>Test 1</h3>
<p role=listbox aria-label=test><img src=# alt=option role=option tabindex=0 aria-selected=false></p>
<p><img src=# alt=progressbar role=progressbar></p>
<p><img src=# alt=radio role=radio tabindex=0 aria-checked=false></p>
<p><img src=# alt=scrollbar role=scrollbar aria-valuenow=0 tabindex="0"></p>
<p><img src=# alt=scrollbar role=scrollbar aria-valuenow=0 tabindex="0" aria-controls=tc1></p>
<p><img src=# alt=separator role=separator aria-valuenow=0 tabindex="0"></p>
<p><img src=# alt=slider role=slider aria-valuenow=0 tabindex="0"></p>
<p><img src=# alt=switch role=switch aria-checked=false tabindex="0"></p>
<p role=tablist><img src=# alt=tab tabindex=0 role=tab aria-selected=true></p>
<p role=tree><img src=# alt=treeitem role=treeitem tabindex=0></p>
<p role=tree aria-label=treetest><img src=# alt=treeitem role=treeitem tabindex=0></p>
<p><img src=# alt=doc-cover role=doc-cover></p>

<p>with title</p>
Expand All @@ -98,12 +98,12 @@ <h3>Test 1</h3>
<p role=listbox title=test><img src=# title=option role=option tabindex=0 aria-selected=false></p>
<p><img src=# title=progressbar role=progressbar></p>
<p><img src=# title=radio role=radio tabindex=0 aria-checked=false></p>
<p><img src=# title=scrollbar role=scrollbar aria-valuenow=0 tabindex="0"></p>
<p><img src=# title=scrollbar role=scrollbar aria-valuenow=0 tabindex="0" aria-controls=tc1></p>
<p><img src=# title=separator role=separator aria-valuenow=0 tabindex="0"></p>
<p><img src=# title=slider role=slider aria-valuenow=0 tabindex="0"></p>
<p><img src=# title=switch role=switch aria-checked=false tabindex="0"></p>
<p role=tablist><img src=# title=tab tabindex=0 role=tab aria-selected=true></p>
<p role=tree><img src=# title=treeitem role=treeitem tabindex=0></p>
<p role=tree aria-label=testcase><img src=# title=treeitem role=treeitem tabindex=0></p>
<p><img src=# title=doc-cover role=doc-cover></p>

<p>with aria-label</p>
Expand All @@ -118,12 +118,12 @@ <h3>Test 1</h3>
<p role=listbox aria-label=test><img src=# aria-label=option role=option tabindex=0 aria-selected=false></p>
<p><img src=# aria-label=progressbar role=progressbar></p>
<p><img src=# aria-label=radio role=radio tabindex=0 aria-checked=false></p>
<p><img src=# aria-label=scrollbar role=scrollbar aria-valuenow=0 tabindex="0"></p>
<p><img src=# aria-label=scrollbar role=scrollbar aria-valuenow=0 tabindex="0" aria-controls=tc1></p>
<p><img src=# aria-label=separator role=separator aria-valuenow=0 tabindex="0"></p>
<p><img src=# aria-label=slider role=slider aria-valuenow=0 tabindex="0"></p>
<p><img src=# aria-label=switch role=switch aria-checked=false tabindex="0"></p>
<p role=tablist><img src=# aria-label=tab tabindex=0 role=tab aria-selected=true></p>
<p role=tree><img src=# aria-label=treeitem role=treeitem tabindex=0></p>
<p role=tree aria-label=testcase><img src=# aria-label=treeitem role=treeitem tabindex=0></p>
<p><img src=# aria-label=doc-cover role=doc-cover></p>

<p id=al>with aria-labelledby</p>
Expand All @@ -138,12 +138,12 @@ <h3>Test 1</h3>
<p role=listbox aria-label=test><img src=# aria-labelledby=al role=option tabindex=0 aria-selected=false></p>
<p><img src=# aria-labelledby=al role=progressbar></p>
<p><img src=# aria-labelledby=al role=radio tabindex=0 aria-checked=false></p>
<p><img src=# aria-labelledby=al role=scrollbar aria-valuenow=0 tabindex="0"></p>
<p><img src=# aria-labelledby=al role=scrollbar aria-valuenow=0 tabindex="0" aria-controls=tc1></p>
<p><img src=# aria-labelledby=al role=separator aria-valuenow=0 tabindex="0"></p>
<p><img src=# aria-labelledby=al role=slider aria-valuenow=0 tabindex="0"></p>
<p><img src=# aria-labelledby=al role=switch aria-checked=false tabindex="0"></p>
<p role=tablist><img src=# aria-labelledby=al tabindex=0 role=tab aria-selected=true></p>
<p role=tree><img src=# aria-labelledby=al role=treeitem tabindex=0></p>
<p role=tree aria-label=testcase><img src=# aria-labelledby=al role=treeitem tabindex=0></p>
<p><img src=# aria-labelledby=al role=doc-cover></p>
</div>

Expand All @@ -161,7 +161,6 @@ <h3>Test 2</h3>
<div class="testcase">
<img src=# alt role=none>
<img src=# alt role=presentation>

<img src=# role=img>
<img src=# role=none>
<img src=# role=presentation>
Expand Down

0 comments on commit fad9632

Please sign in to comment.