diff --git a/tests/parser/mediaParserTests.txt b/tests/parser/mediaParserTests.txt index cde00e549ed..059ee442f9b 100644 --- a/tests/parser/mediaParserTests.txt +++ b/tests/parser/mediaParserTests.txt @@ -2930,7 +2930,7 @@ parsoid={ !! html/parsoid !! wikitext @@ -3795,3 +3795,40 @@ wgParserEnableLegacyMediaDOM=false !! html/parsoid
!! end + +## The bogus option here isn't going to roundtrip +!! test +File with caption with pipe in extension tag attribute +!! options +parsoid=wt2html,html2html +!! config +wgParserEnableLegacyMediaDOM=false +!! wikitext +[[File:Foobar.jpg|thumb|Test 123]] +!! html/php +
Test 123
+!! html/parsoid +
Test 123
+!! end + +!! test +File with table in caption with extra table attribute spaces +!! config +wgParserEnableLegacyMediaDOM=false +!! wikitext +[[File:Foobar.jpg|thumb| +{| +|- +|hi +|} +]] +!! html/php +
hi
+!! html/parsoid +
+ + + +
hi
+
+!! end