X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=e6fa203419adaabb0749817cf87c371ab1b57c1b;hp=840c74dbb9673ebcf6299cfc450c4d44a33bfce2;hb=74426f3cf796b149f1ae445e41815bbe148640b2;hpb=1a40e0cc86b6ee0706606ded3ea243dfde4a414c diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 840c74dbb9..e6fa203419 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -12633,6 +12633,19 @@ parsoid=wt2html

!! end +!! test +Preprocessor precedence 17: template w/o target shouldn't prevent closing +!! options +parsoid=wt2html +!! wikitext +{{echo|hi {{}}}} +!! html/php +

hi {{}} +

+!! html/parsoid +

hi {{}}

+!! end + ### ### Token Stream Patcher tests ### @@ -20688,6 +20701,48 @@ image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla. !! end +!! test +Gallery (without px units) +!! wikitext + +File:Foobar.jpg + +!! html/php + + +!! html/parsoid + +!! end + +!! test +Gallery (with invalid units) +!! wikitext + +File:Foobar.jpg + +!! html/php + + +!! html/parsoid + +!! end + !! test Gallery with link that has fragment !! options @@ -30608,3 +30663,25 @@ b

2

b

!! end + +!! test +Pseudo-sections emitted by templates should have id -2 +!! options +parsoid={ + "wrapSections": true +} +!! wikitext +foo +{{echo|
+== a == +== b == +
+}} +!! html/parsoid +

foo

+
+

a

+

b

+
+
+!! end