diff options
Diffstat (limited to 'tests/parser/parserTests.txt')
-rw-r--r-- | tests/parser/parserTests.txt | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 6ea832e3..999cd717 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -8815,6 +8815,87 @@ title=[[Main Page]] !! end +!! test +Strip marker in urlencode +!! input +{{urlencode:x<nowiki/>y}} +{{urlencode:x<nowiki/>y|wiki}} +{{urlencode:x<nowiki/>y|path}} +!! result +<p>xy +xy +xy +</p> +!! end + +!! test +Strip marker in lc +!! input +{{lc:x<nowiki/>y}} +!! result +<p>xy +</p> +!! end + +!! test +Strip marker in uc +!! input +{{uc:x<nowiki/>y}} +!! result +<p>XY +</p> +!! end + +!! test +Strip marker in formatNum +!! input +{{formatnum:1<nowiki/>2}} +{{formatnum:1<nowiki/>2|R}} +!! result +<p>12 +12 +</p> +!! end + +!! test +Strip marker in grammar +!! options +language=fi +!! input +{{grammar:elative|foo<nowiki/>bar}} +!! result +<p>foobarista +</p> +!! end + +!! test +Strip marker in padleft +!! input +{{padleft:|2|x<nowiki/>y}} +!! result +<p>xy +</p> +!! end + +!! test +Strip marker in padright +!! input +{{padright:|2|x<nowiki/>y}} +!! result +<p>xy +</p> +!! end + +!! test +Strip marker in anchorencode +!! input +{{anchorencode:x<nowiki/>y}} +!! result +<p>xy +</p> +!! end + + TODO: more images more tables |