From a42b0701ca57b4d2a31663fdbe4b046c33e8dafe Mon Sep 17 00:00:00 2001 From: Romain Deltour Date: Mon, 21 Nov 2022 00:49:05 +0100 Subject: [PATCH] test: check that MathML deprecated features are not reported Fix #1326 --- .../content-document-xhtml.feature | 5 +++++ .../files/mathml-deprecated-valid.xhtml | 21 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/test/resources/epub3/06-content-document/files/mathml-deprecated-valid.xhtml 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 c7c2bdcf5..823542bb9 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 @@ -849,6 +849,11 @@ Feature: EPUB 3 — Content Documents — XHTML When checking document 'mathml-unprefixed-valid.xhtml' Then no errors or warnings are reported + @spec @xref:sec-xhtml-deviations + Scenario: Allow MathML deprecated features + When checking EPUB 'mathml-deprecated-valid.xhtml' + Then no errors or warnings are reported + Scenario: Verify MathML markup without alternative text Given the reporting level set to usage When checking document 'mathml-noalt-usage.xhtml' diff --git a/src/test/resources/epub3/06-content-document/files/mathml-deprecated-valid.xhtml b/src/test/resources/epub3/06-content-document/files/mathml-deprecated-valid.xhtml new file mode 100644 index 000000000..d04eb93e9 --- /dev/null +++ b/src/test/resources/epub3/06-content-document/files/mathml-deprecated-valid.xhtml @@ -0,0 +1,21 @@ + + + + + MathML + + +
+

MathML Test

+ + + + + + x + + + +
+ +