diff options
Diffstat (limited to 'extensions/ParserFunctions/funcsParserTests.txt')
-rw-r--r-- | extensions/ParserFunctions/funcsParserTests.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/extensions/ParserFunctions/funcsParserTests.txt b/extensions/ParserFunctions/funcsParserTests.txt index a741836a..2ff7ba3d 100644 --- a/extensions/ParserFunctions/funcsParserTests.txt +++ b/extensions/ParserFunctions/funcsParserTests.txt @@ -94,6 +94,15 @@ Explicitely specified output language (Dutch) !! end !! test +Preserve tags in #switch default value +!! input +{{#switch:a|b|<div>c</div>}} +!! result +<div>c</div> + +!! end + +!! test Bug 19093: Default values don't fall through in switch !! input <{{#switch: foo | bar | #default = DEF }}> @@ -211,3 +220,15 @@ Bug 22866: #ifexpr should evaluate "-0" as false <p>false </p> !! end + +!! test +Templates: Parser functions don't strip whitespace from positional parameters +!! input +{{#if: {{foo}} +| no-pre-then +| no-pre-else +}} +!! result +<p>no-pre-then +</p> +!! end |