mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 11:59:54 +00:00
Prevent duplicate warnings when running lots of parser tests.
This commit is contained in:
parent
f409f3f252
commit
018bc0a353
|
@ -7,10 +7,12 @@
|
|||
# fixme: #time seems to be accepting input as local time, which strikes me as wrong
|
||||
|
||||
!! article
|
||||
Main Page
|
||||
ParserFunctions page
|
||||
!! text
|
||||
We need to repeat here in case only this file is being run.
|
||||
Otherwise, it already leaks from parserTests.txt.
|
||||
A sample page so we can test ifexist.
|
||||
|
||||
This used to be a Main Page, but that caused duplicate article
|
||||
warnings when running the normal tests at the same time.
|
||||
!! endarticle
|
||||
|
||||
!! article
|
||||
|
@ -70,7 +72,7 @@ Bug 19093: Default values don't fall through in switch
|
|||
{{#ifexist}}
|
||||
!! input
|
||||
{{#ifexist:Media:Foobar.jpg|Found|Not found}}
|
||||
{{#ifexist:Main Page|Found|Not found}}
|
||||
{{#ifexist:ParserFunctions page|Found|Not found}}
|
||||
{{#ifexist:Missing|Found|Not found}}
|
||||
!! result
|
||||
<p>Found
|
||||
|
|
Loading…
Reference in a new issue