From ad0f7e3d783c6b218b26d1c8f8f2dea6218b36ca Mon Sep 17 00:00:00 2001 From: Romain Deltour Date: Fri, 27 Dec 2024 17:24:01 +0100 Subject: [PATCH] test: add/clean some ARIA role tests --- .../content-document-xhtml.feature | 12 ------------ .../files/aria-roles-img-valid.xhtml | 3 ++- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/test/resources/epub3/06-content-document/content-document-xhtml.feature b/src/test/resources/epub3/06-content-document/content-document-xhtml.feature index 623214395..21b9042d9 100644 --- a/src/test/resources/epub3/06-content-document/content-document-xhtml.feature +++ b/src/test/resources/epub3/06-content-document/content-document-xhtml.feature @@ -141,14 +141,6 @@ Feature: EPUB 3 — Content Documents — XHTML Then error RSC-005 is reported And the message contains 'attribute "aria-describedat" not allowed here' And no other errors or warnings are reported - - Scenario: Verify the DPUB-ARIA roles allowed on `a` - When checking document 'aria-roles-img-valid.xhtml' - Then no errors or warnings are reported - - Scenario: Verify the DPUB-ARIA roles allowed on `aside` - When checking document 'aria-roles-img-valid.xhtml' - Then no errors or warnings are reported Scenario: Verify the DPUB-ARIA roles allowed on `footer` When checking document 'aria-roles-footer-valid.xhtml' @@ -162,10 +154,6 @@ Feature: EPUB 3 — Content Documents — XHTML When checking document 'aria-roles-header-valid.xhtml' Then no errors or warnings are reported - Scenario: Verify the DPUB-ARIA roles allowed on `hr` - When checking document 'aria-roles-header-valid.xhtml' - Then no errors or warnings are reported - Scenario: Verify the DPUB-ARIA roles allowed on `img` When checking document 'aria-roles-img-valid.xhtml' Then no errors or warnings are reported diff --git a/src/test/resources/epub3/06-content-document/files/aria-roles-img-valid.xhtml b/src/test/resources/epub3/06-content-document/files/aria-roles-img-valid.xhtml index 30f144d80..76c1b3270 100644 --- a/src/test/resources/epub3/06-content-document/files/aria-roles-img-valid.xhtml +++ b/src/test/resources/epub3/06-content-document/files/aria-roles-img-valid.xhtml @@ -5,6 +5,7 @@ DPUB-ARIA roles allowed on img - okay + cover + math