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:
Gabriel Wicke 2012-11-08 10:38:55 -08:00
parent c3d5c4b31e
commit ff2801b0df

View file

@ -93,6 +93,15 @@ Explicitely specified output language (Dutch)
</p>
!! 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