From 8a6475bd704fd57c2207b20e1588134a742e3bb6 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sat, 22 Jan 2011 16:34:14 +0000 Subject: [PATCH 1/1] Don't look for pipes in the root node. --- tests/parser/preprocess/Fundraising.expected | 18 ++++++++++++++++++ tests/parser/preprocess/Fundraising.txt | 17 +++++++++++++++++ .../includes/parser/PreprocessorTest.php | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 tests/parser/preprocess/Fundraising.expected create mode 100644 tests/parser/preprocess/Fundraising.txt diff --git a/tests/parser/preprocess/Fundraising.expected b/tests/parser/preprocess/Fundraising.expected new file mode 100644 index 0000000000..f5b32cc574 --- /dev/null +++ b/tests/parser/preprocess/Fundraising.expected @@ -0,0 +1,18 @@ +<div name="fundraising" id="fundraising" class="plainlinks" style="margin-top:5px; text-align: center; background-color: #ffffe0; border: solid 1px #e0e0c0"> +'''Pwede kang [[Wikimedia:give the gift of knowledge|maghandog ng kaalaman]] sa paraan ng [[Wikimedia:Fundraising#Donation_methods|pagbibigay ng donasyon sa Pundasyong Wikimedia!]]''' +<br /> +<fundraising/> +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +<fundraisinglogo/> +<br /> +<b>Ngayon, ang iyong [[Wikimedia:Fundraising|kontribusyon]] ay [[Wikimedia:Fundraising FAQ|itatambal]] ng isang anonimong kaibigan.</b> +<br /> +<small> +[[Wikimedia:Deductibility of donations|Pagbabawas sa mga buwis ng donasyon]] +| +[[Wikimedia:Fundraising FAQ|FAQ]] +| +[http://upload.wikimedia.org/wikipedia/foundation/2/28/Wikimedia_2006_fs.pdf Mga pampananalaping pahayag] +</small> +</div> + \ No newline at end of file diff --git a/tests/parser/preprocess/Fundraising.txt b/tests/parser/preprocess/Fundraising.txt new file mode 100644 index 0000000000..b868b4d82e --- /dev/null +++ b/tests/parser/preprocess/Fundraising.txt @@ -0,0 +1,17 @@ + diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index 790df5df93..c5f5eb6578 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -82,6 +82,7 @@ class PreprocessorTest extends MediaWikiTestCase { array( "{{#if: {{{1|}}} | 1 | {{#if: {{{1|}}} | 2 | 3 }} }}", ""), array( "{{ {{Foo}}", "{{ "), array( "{{Foobar {{Foo}} {{Bar}} {{Baz}} ", "{{Foobar "), + array( "[[Foo]] |", "[[Foo]] |"), /* array( file_get_contents( dirname( __FILE__ ) . '/QuoteQuran.txt' ), file_get_contents( dirname( __FILE__ ) . '/QuoteQuranExpanded.txt' ) ), */ ); } @@ -101,6 +102,7 @@ class PreprocessorTest extends MediaWikiTestCase { array( "QuoteQuran" ), # http://en.wikipedia.org/w/index.php?title=Template:QuoteQuran/sandbox&oldid=237348988 GFDL + CC-BY-SA by Striver array( "Factorial" ), # http://en.wikipedia.org/w/index.php?title=Template:Factorial&oldid=98548758 GFDL + CC-BY-SA by Polonium array( "All_system_messages" ), # http://tl.wiktionary.org/w/index.php?title=Suleras:All_system_messages&oldid=2765 GPL text generated by MediaWiki + array( "Fundraising" ), # http://tl.wiktionary.org/w/index.php?title=MediaWiki:Sitenotice&oldid=5716 GFDL + CC-BY-SA, copied there by Sky Harbor. ); } -- 2.20.1