r62520 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62519‎ | r62520 | r62521 >
Date:14:45, 15 February 2010
Author:conrad
Status:ok
Tags:
Comment:
Prevent duplicate warnings when running lots of parser tests.
Modified paths:
  • /trunk/extensions/ParserFunctions/funcsParserTests.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/ParserFunctions/funcsParserTests.txt
@@ -7,10 +7,12 @@
88 # fixme: #time seems to be accepting input as local time, which strikes me as wrong
99
1010 !! article
11 -Main Page
 11+ParserFunctions page
1212 !! text
13 -We need to repeat here in case only this file is being run.
14 -Otherwise, it already leaks from parserTests.txt.
 13+A sample page so we can test ifexist.
 14+
 15+This used to be a Main Page, but that caused duplicate article
 16+warnings when running the normal tests at the same time.
1517 !! endarticle
1618
1719 !! article
@@ -70,7 +72,7 @@
7173 {{#ifexist}}
7274 !! input
7375 {{#ifexist:Media:Foobar.jpg|Found|Not found}}
74 -{{#ifexist:Main Page|Found|Not found}}
 76+{{#ifexist:ParserFunctions page|Found|Not found}}
7577 {{#ifexist:Missing|Found|Not found}}
7678 !! result
7779 <p>Found

Status & tagging log