Accessible Names Test Suite

Test Suite Overview

This test suite is specifically focused on Accessible Names testing - validating accessible name computation across different HTML elements and ARIA roles according to the W3C's Accessible Name and Description Computation algorithm.

Accessible names are crucial for assistive technologies like screen readers to correctly identify and announce interface elements. These tests validate proper implementation of the algorithms that determine what name is announced to users.

The test files contain both passing examples (that follow best practices) and failing examples (that violate accessible name requirements) to validate automated testing tools and demonstrate proper implementation techniques.

Total Accessible Name Test Cases: 406 (120 passing, 281 failing, 10 warnings)

HTML Element Tests

Button Accessible Names Test

10 passing, 15 failing (25 total)

Tests accessible name computation for button elements (<button>) and elements with role="button", including various scenarios with text content, aria-label, and aria-labelledby.

WCAG 4.1.2

Form Accessible Names Test

9 passing, 25 failing, 2 warnings (36 total)

Tests accessible name computation for form elements, including <form>, <fieldset>, and ARIA equivalents with role="form" and role="group".

WCAG 4.1.2

Form Controls Accessible Names Test

16 passing, 75 failing, 5 warnings (96 total)

Tests accessible name computation for various form controls including text inputs, checkboxes, radio buttons, selects, and textareas using explicit labels, implicit labels, aria-label, and aria-labelledby.

WCAG 4.1.2

IFrame Accessible Names Test

7 passing, 9 failing (16 total)

Tests accessible name computation for iframe elements using title attribute, aria-label, and aria-labelledby, including embedded content with srcdoc.

WCAG 4.1.2

Image Accessible Names Test

12 passing, 23 failing (35 total)

Tests accessible name computation for images, including <img> elements with alt text, SVG images with various labeling techniques, and complex images with role="img".

WCAG 4.1.2 WCAG 1.1.1

Link Accessible Names Test

9 passing, 17 failing (26 total)

Tests accessible name computation for links (<a> elements) and elements with role="link", including text content, icon+text, aria-label, and aria-labelledby.

WCAG 4.1.2

ARIA Role Tests

ARIA Roles Accessible Names - Part 1

12 passing, 66 failing, 3 warnings (81 total)

Tests accessible name computation for common interactive ARIA roles including combobox, dialog, listbox, menu, menubar, radiogroup, and tab elements.

WCAG 4.1.2

ARIA Roles Accessible Names - Part 2

24 passing, 64 failing (88 total)

Continues testing accessible name computation for additional interactive ARIA roles including grid, slider, spinbutton, switch, and textbox elements.

WCAG 4.1.2

ARIA Roles Accessible Names - Part 3

16 passing, 36 failing (52 total)

Tests accessible name computation for specialized ARIA roles (meter, toolbar, tree) and elements with tabindex that require accessible names for proper screen reader identification.

WCAG 4.1.2

ARIA Supporting Roles Accessible Names Test

15 passing, 32 failing (47 total)

Tests accessible name computation for non-interactive ARIA roles that provide structure and context, such as landmarks, regions, and table components.

WCAG 4.1.2