Figure & figcaption tests

Test 1

Accessible Name
Content caption.
Pattern notes:

Image has non-empty alt attribute.

Test 2

Content caption.
Pattern notes:

Image has no declared alt attribute.

Test 3

Content caption.
Pattern notes:

Image has empty alt attribute.

Test 4

Content caption.
Pattern notes:

<figure> has aria-label. Image has empty alt attribute.

Test 5

Accessible Name
Content caption.
Pattern notes:

<figure> has aria-label. Image has non-empty alt attribute.

Test 6

Accessible Name
Pattern notes:

<figure> without figcaption. Image has non-empty alt attribute.

Test 7

Accessible Name
Content caption.
Pattern notes:

<figure> has aria-labelledby pointing to the figcaption. Image has non-empty alt attribute.

Test 8

Accessible Name
Content caption.
Pattern notes:

<figure> has role="figure". Image has non-empty alt attribute.

Test 9

Accessible Name
Content caption.
Pattern notes:

<figure> has role="figure" and aria-labelledby pointing to the figcaption. Image has non-empty alt attribute.

Test 10

Accessible Name
Content caption.
Pattern notes:

<figure> has role="figure" and aria-label. Image has non-empty alt attribute.

Test 11

Non-image figure content

Content caption.
Pattern notes:

<figure> with a paragraph as its subject. A <figcaption> should provide the accessible name.

Test 12

Non-image figure content

Pattern notes:

<figure> with a paragraph as its subject. No <figcaption>.

Test 13

Non-image figure content

Pattern notes:

<figure> with an aria-label which should provide its accessible name.