~ubuntu-branches/ubuntu/saucy/mediawiki-extensions/saucy

« back to all changes in this revision

Viewing changes to dist/mediawiki-extensions-base/usr/share/doc/mediawiki-extensions/base/ParserFunctions/funcsParserTests.txt

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2010-05-04 15:13:35 UTC
  • mfrom: (0.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100504151335-54qeucg3ec108q28
Tags: 2.2
* Added Replaces:/Conflicts: to allow a proper upgrade.
Closes: #580066
* Fixed package descriptions.
Closes: #579667
* Patched mediawiki-extensions-fckeditor to make it work with
  php 5.3. The fix may not be perfect but at least it work.
  Not closing the bug (#579822) for now..

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Force the test runner to ensure the extension is loaded
 
2
# fixme... this doesn't seem to work :D
 
3
#!! functionhooks
 
4
#time
 
5
#!! endfunctionhooks
 
6
 
 
7
# fixme: #time seems to be accepting input as local time, which strikes me as wrong
 
8
 
 
9
!! test
 
10
Input times should probably be UTC, not local time
 
11
!! input
 
12
{{#time:c|15 January 2001}}
 
13
!!result
 
14
<p>2001-01-15T00:00:00+00:00
 
15
</p>
 
16
!! end
 
17
 
 
18
!! test
 
19
Time test in traditional range...
 
20
!! input
 
21
{{#time:Y|15 January 2001}}
 
22
!! result
 
23
<p>2001
 
24
</p>
 
25
!! end
 
26
 
 
27
!! test
 
28
Time test prior to 1970 Unix creation myth
 
29
!! input
 
30
{{#time:Y|5 April 1967}}
 
31
!! result
 
32
<p>1967
 
33
</p>
 
34
!! end
 
35
 
 
36
!! test
 
37
Time test after the 2038 32-bit Apocalype
 
38
!! input
 
39
{{#time:Y|28 July 2061}}
 
40
!! result
 
41
<p>2061
 
42
</p>
 
43
!! end