mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 11:59:54 +00:00
Add a test for the preservation of tags in the #switch default value
This test is inspired by the Parsoid commit https://gerrit.wikimedia.org/r/#/c/28623/, but applies to the PHP version too. Change-Id: I4814b98597f2dd6a2279b8cdcc90a26fbbdecc71
This commit is contained in:
parent
c3d5c4b31e
commit
ff2801b0df
|
@ -93,6 +93,15 @@ Explicitely specified output language (Dutch)
|
||||||
</p>
|
</p>
|
||||||
!! end
|
!! end
|
||||||
|
|
||||||
|
!! test
|
||||||
|
Preserve tags in #switch default value
|
||||||
|
!! input
|
||||||
|
{{#switch:a|b|<div>c</div>}}
|
||||||
|
!! result
|
||||||
|
<div>c</div>
|
||||||
|
|
||||||
|
!! end
|
||||||
|
|
||||||
!! test
|
!! test
|
||||||
Bug 19093: Default values don't fall through in switch
|
Bug 19093: Default values don't fall through in switch
|
||||||
!! input
|
!! input
|
||||||
|
|
Loading…
Reference in a new issue