Skip to content

Commit

Permalink
Update some tests to use verifyLabelsBySelector()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahim Abdi committed Nov 10, 2023
1 parent e71a460 commit de1eefe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions accname/name/comp_label.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,11 @@ <h2>Empty/whitespace aria-label tests</h2>
<button aria-label="" data-testname="button with empty aria-label does not use aria-label as name" data-expectedlabel="my button" class="ex">my button</button>
<textarea aria-label=" " title="title" data-testname="textarea with tab character as aria-label does not use aria-label as name" data-expectedlabel="title" class="ex">textarea contents</textarea>
<button aria-label="
" data-testname="button with carriage return as aria-label does not use aria-label as name" data-ignoredattributeforlabel="aria-label" class="ignore-attribute">my button</button>
<button aria-label=" " data-testname="button with space characters as aria-label does not use aria-label as name" data-ignoredattributeforlabel="aria-label" class="ignore-attribute">my button</button>
" data-testname="button with carriage return as aria-label does not use aria-label as name" data-expectedlabel="my button" class="ex">my button</button>
<button aria-label=" " data-testname="button with space characters as aria-label does not use aria-label as name" data-expectedlabel="my button" class="ex">my button</button>

<script>
AriaUtils.verifyLabelsBySelector(".ex");
AriaUtils.verifyAttributeIsIgnoredForComputedLabel(".ignore-attribute")
</script>
</body>
</html>

0 comments on commit de1eefe

Please sign in to comment.