From 0745a738b16f9d6bf252f9e4ea69d8e71fd8ce66 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 19 Jan 2011 20:46:00 +0000 Subject: [PATCH] The pipes were no recognized after a link. A one line fix in the code :) --- tests/phpunit/includes/parser/PreprocessorTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index 472c14548a..72bdd4205c 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -75,6 +75,11 @@ class PreprocessorTest extends MediaWikiTestCase { array( "Foo BarBaz", "Foo display map fooBar</display map >Baz" ), array( "Foo ", "Foo gallery bar="baz" " ), array( "Foo", "/fooFoo<//foo>" ), # Worth blacklisting IMHO + array( "{{#ifexpr: ({{{1|1}}} = 2) | Foo | Bar }}", ""), + array( "{{#if: {{{1|}}} | Foo | {{Bar}} }}", ""), + array( "{{#if: {{{1|}}} | Foo | [[Bar]] }}", ""), + array( "{{#if: {{{1|}}} | [[Foo]] | Bar }}", ""), + array( "{{#if: {{{1|}}} | 1 | {{#if: {{{1|}}} | 2 | 3 }} }}", ""), /* array( file_get_contents( dirname( __FILE__ ) . '/QuoteQuran.txt' ), file_get_contents( dirname( __FILE__ ) . '/QuoteQuranExpanded.txt' ) ), */ ); } -- 2.20.1