X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=0fa91d4afccb5a92ba6f87f8e894ec5b6c72039a;hb=1f719d58d8a709e595a1daf355aeb6d1803cda73;hp=0facec251349903b9bc478448c6970d2c5100ab0;hpb=7621b57d958d0753236221227cbfb519d7faf192;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 0facec2513..0fa91d4afc 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -8073,12 +8073,23 @@ File containing double quotes and spaces !! wikitext [[File:Cool "Gator".png]] !! html/php+tidy -

File:Cool "Gator".png +

File:Cool "Gator".png

!! html/parsoid

File:Cool "Gator".png

!! end +!! test +File containing single quotes +!! wikitext +[[File:Foo's ''italic'' bar.jpg]] +[[File:Foo's ''italic'' bar.jpg|Foo's ''italic'' bar]] +!! html/php+tidy +

File:Foo's italic bar.jpg +Foo's italic bar +

+!! end + !! test Redirect containing double quotes and spaces !! wikitext @@ -8139,8 +8150,8 @@ Broken image links with HTML captions (T41700) [[File:Nonexistent|<]] [[File:Nonexistent|abc]] !! html/php -

<script></script> -<script></script> +

<script></script> +<script></script> < abc

@@ -10813,7 +10824,21 @@ 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 +{{REVISIONID}} +!! html/* +

1337 +

+flags=vary-revision-id +!! end + +!! test +Magic Word: {{REVISIONID}} on non-latest revision !! options parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } showflags @@ -10825,6 +10850,143 @@ showflags 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 @@ -15666,7 +15828,7 @@ parsoid=wt2html,wt2wt,html2html ################### !! test -Link to image page- image page normally doesn't exists, hence edit link +Link to image page- image page normally doesn't exist, hence edit link Add test with existing image page #

Image:test !! wikitext