X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=7046a7f2fd7c432ef5a5dd1f2c478a61ef145f65;hp=0facec251349903b9bc478448c6970d2c5100ab0;hb=6cfb2e3d7a2b96d5041312fcec88248bb46573d7;hpb=0e7556bd781dc9da2e47a64e2e93d7b732f99621 diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 0facec2513..7046a7f2fd 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -10813,8 +10813,9 @@ parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! end !! test -Magic Word: {{REVISIONID}} +Magic Word: {{REVISIONID}} on latest revision !! options +lastsavedrevision parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } showflags !! wikitext @@ -10825,6 +10826,156 @@ showflags flags=vary-revision-id !! end +!! test +Magic Word: {{REVISIONID}} on non-latest revision +!! options +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } +showflags +!! wikitext +{{REVISIONID}} +!! html/* +

1337 +

+flags=vary-revision-id +!! end + +!! test +Magic Word: {{REVISIONTIMESTAMP}} on latest revision +!! options +lastsavedrevision +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } +showflags +!! wikitext +{{REVISIONTIMESTAMP}} +!! html/* +

19700101000203 +

+flags= +!! end + +!! test +Magic Word: {{REVISIONTIMESTAMP}} on non-existing page +!! options +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } +showflags +!! wikitext +{{REVISIONTIMESTAMP}} +!! html/* +

123 +

+flags=vary-revision-timestamp +!! end + +!! test +Magic Word: {{REVISIONUSER}} on latest revision +!! options +lastsavedrevision +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } +showflags +!! wikitext +{{REVISIONUSER}} +!! html/* +

127.0.0.1 +

+flags=vary-user +!! end + +!! test +Parser Function: {{REVISIONID:{{PAGENAME}}}} on latest revision +!! options +lastsavedrevision +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } +showflags +!! wikitext +{{REVISIONID:{{PAGENAME}}}} +!! html/* +

1337 +

+flags=vary-revision-id +!! end + +!! test +Parser Function: {{REVISIONID:{{PAGENAME}}}} on non-saved revision +!! options +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } +showflags +!! wikitext +{{REVISIONID:{{PAGENAME}}}} +!! html/* + +flags=vary-revision-id +!! end + +!! test +Parser Function: {{REVISIONTIMESTAMP:{{PAGENAME}}}} on latest revision +!! options +lastsavedrevision +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } +showflags +!! wikitext +{{REVISIONTIMESTAMP:{{PAGENAME}}}} +!! html/* +

19700101000203 +

+flags=vary-revision-timestamp +!! end + +!! test +Parser Function: {{REVISIONDAY:{{PAGENAME}}}} on latest revision +!! options +lastsavedrevision +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } +showflags +!! wikitext +{{REVISIONDAY:{{PAGENAME}}}} +!! html/* +

1 +

+flags=vary-revision-timestamp +!! end + +!! test +Parser Function: {{REVISIONMONTH:{{PAGENAME}}}} on latest revision +!! options +lastsavedrevision +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } +showflags +!! wikitext +{{REVISIONMONTH:{{PAGENAME}}}} +!! html/* +

01 +

+flags=vary-revision-timestamp +!! end + +!! test +Parser Function: {{REVISIONYEAR:{{PAGENAME}}}} on latest revision +!! options +lastsavedrevision +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } +showflags +!! wikitext +{{REVISIONYEAR:{{PAGENAME}}}} +!! html/* +

1970 +

+flags=vary-revision-timestamp +!! end + +!! test +Parser Function: {{PAGESIZE:{{PAGENAME}}}} on latest revision +!! options +lastsavedrevision +parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } +showflags +!! wikitext +{{PAGESIZE:{{PAGENAME}}}} +!! html/* +

25 +

+flags=vary-revision-sha1 +!! end + !! test Magic Word: {{SCRIPTPATH}} !! options