r61858 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61857‎ | r61858 | r61859 >
Date:15:24, 2 February 2010
Author:conrad
Status:ok
Tags:
Comment:
Parser tests for behaviour of subst: and safesubst: after r61710
Modified paths:
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -2932,7 +2932,47 @@
29332933 Foo
29342934 !! end
29352935
 2936+!! article
 2937+Template:SubstTest
 2938+!!text
 2939+{{<includeonly>subst:</includeonly>Includes}}
 2940+!! endarticle
 2941+
 2942+!! article
 2943+Template:SafeSubstTest
 2944+!! text
 2945+{{<includeonly>safesubst:</includeonly>Includes}}
 2946+!! endarticle
 2947+
29362948 !! test
 2949+bug 22297: safesubst: works during PST
 2950+!! options
 2951+pst
 2952+!! input
 2953+{{subst:SafeSubstTest}}{{safesubst:SubstTest}}
 2954+!! result
 2955+FoobarFoobar
 2956+!! end
 2957+
 2958+!! test
 2959+bug 22297: safesubst: works during normal parse
 2960+!! input
 2961+{{SafeSubstTest}}
 2962+!! result
 2963+<p>Foobar
 2964+</p>
 2965+!! end
 2966+
 2967+!! test:
 2968+subst: does not work during normal parse
 2969+!! input
 2970+{{SubstTest}}
 2971+!! result
 2972+<p>{{subst:Includes}}
 2973+</p>
 2974+!! end
 2975+
 2976+!! test
29372977 pre-save transform: context links ("pipe trick")
29382978 !! options
29392979 pst

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r61710bug 22297 - "syntax for substitution that doesn't break transclusion"...conrad11:58, 30 January 2010

Status & tagging log