r48572 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48571‎ | r48572 | r48573 >
Date:06:17, 19 March 2009
Author:werdna
Status:resolved (Comments)
Tags:
Comment:
Parser tests for date autoformatting
Modified paths:
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -7251,6 +7251,33 @@
72527252 </p>
72537253 !! end
72547254
 7255+!! test
 7256+Formatted date
 7257+!! input
 7258+[[2009-03-24]]
 7259+!! result
 7260+<p><span class="mw-formatted-date" title="2009-03-24"><a href="https://www.mediawiki.org/index.php?title=2009&amp;action=edit&amp;redlink=1" class="new" title="2009 (page does not exist)">2009</a>-<a href="https://www.mediawiki.org/index.php?title=March_24&amp;action=edit&amp;redlink=1" class="new" title="March 24 (page does not exist)">03-24</a></span>
 7261+</p>
 7262+!!end
 7263+
 7264+!!test
 7265+Formatted unlinked date
 7266+!!input
 7267+{{formatdate:2009-03-24}}
 7268+!! result
 7269+<p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
 7270+</p>
 7271+!! end
 7272+
 7273+!!test
 7274+Formatted unlinked date with default format
 7275+!!input
 7276+{{formatdate:2009-03-24|mdy}}
 7277+!! result
 7278+<p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
 7279+</p>
 7280+!! end
 7281+
72557282 #
72567283 #
72577284 #

Comments

#Comment by Brion VIBBER (talk | contribs)   00:36, 25 March 2009

First test doesn't pass for me.

Status & tagging log