From be9aed5e13b4e24bbeb9663da0d6489a3c3590c7 Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Mon, 9 Oct 2023 12:20:08 -0500 Subject: [PATCH] Add a test to verify correct behavior of localized desc types * Parsoid currently fails this and the failing test has been added to the known failure list. A follow-up patch will fix it. Change-Id: Ic788340ec073b401e3e921339250a2678ea038da --- .../imageMapParserTests-knownFailures.json | 6 +++++- tests/parser/imageMapParserTests.txt | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/tests/parser/imageMapParserTests-knownFailures.json b/tests/parser/imageMapParserTests-knownFailures.json index 0967ef4..75969b5 100644 --- a/tests/parser/imageMapParserTests-knownFailures.json +++ b/tests/parser/imageMapParserTests-knownFailures.json @@ -1 +1,5 @@ -{} +{ + "Non-default localized (French) description type": { + "wt2html": "

imagemap_invalid_desc

" + } +} diff --git a/tests/parser/imageMapParserTests.txt b/tests/parser/imageMapParserTests.txt index e9e3f42..e3a24b3 100644 --- a/tests/parser/imageMapParserTests.txt +++ b/tests/parser/imageMapParserTests.txt @@ -174,6 +174,23 @@ desc top-left
!! end +!! test +Non-default localized (French) description type +!! options +language=fr +!! config +wgParserEnableLegacyMediaDOM=false +!! wikitext + +Image:Foobar.jpg +desc haut-gauche + +!! html/php +
+!! html/parsoid +
+!! end + !! test None description type !! config