Skip to content

Commit

Permalink
Add a test for aria headings above level 6
Browse files Browse the repository at this point in the history
  • Loading branch information
mfairchild365 committed Feb 1, 2024
1 parent d972fc2 commit 465b85f
Show file tree
Hide file tree
Showing 3 changed files with 796 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/tests/headings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"title": "HTML and ARIA headings test",
"title": "HTML and ARIA headings test (level 6 and below)",
"description": "This test uses both HTML and ARIA headings",
"assertions": [
{
Expand Down
20 changes: 20 additions & 0 deletions data/tests/html/aria/headings-above-6.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>heading levels greater than 6</title>
</head>
<body>

<button>Tab stop before</button>

<div role="heading" aria-level="7">Lorem ipsum (h7 - aria)</div>
<div role="heading" aria-level="8">Lorem ipsum (h8 - aria)</div>
<div role="heading" aria-level="9">Lorem ipsum (h9 - aria)</div>
<div role="heading" aria-level="10">Lorem ipsum (h10 - aria)</div>
<div role="heading" aria-level="11">Lorem ipsum (h11 - aria)</div>
<div role="heading" aria-level="12">Lorem ipsum (h12 - aria)</div>

<button>Tab stop after</button>

</body>
</html>
Loading

0 comments on commit 465b85f

Please sign in to comment.