Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -2932,7 +2932,47 @@ |
2933 | 2933 | Foo |
2934 | 2934 | !! end |
2935 | 2935 | |
| 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 | + |
2936 | 2948 | !! 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 |
2937 | 2977 | pre-save transform: context links ("pipe trick") |
2938 | 2978 | !! options |
2939 | 2979 | pst |