X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=751ec4118f1f34b25f2f0a4e1ecb6a27394cc33d;hb=a8448c557df18b6d3744bd5bd6d7a5ed0454443b;hp=e1f2370caa1297b38351935bebf342099ae37fee;hpb=7ab3cef4c0bff4c35338d04b533f55e8e44e0a8b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index e1f2370caa..751ec4118f 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -120,12 +120,31 @@ Template:table_attribs |style="color: red"| Foo !! endarticle +!! article +Template:table_cells +!! text +{{table_attribs}} || Bar || Baz +!! endarticle + +!! article +Template:image_attribs +!! text + +[[File:foobar.jpg|right|Caption text]] +!! endarticle + !! article A?b !! text Weirdo titles! !! endarticle +!!article +Template:Bullet +!!text +* Bar +!!endarticle + ### ### Basic tests ### @@ -177,7 +196,11 @@ a b ---- a - + +b +---- +a + b ---- a @@ -209,7 +232,11 @@ b


a -

b +b +

+
+

a +b


a @@ -269,7 +296,7 @@ a b ---- a - + b ---- a @@ -292,7 +319,7 @@ b


a -

b +b


a @@ -852,6 +879,74 @@ Non-html5 tags should be accepted

!! end +!! test + is valid wikitext (bug 52468) +!! input + +!! result +

+

+!! end + +# is HTML4, is HTML4/5. +!! test + or for strikethrough +!! input +strike + +s +!! result +

strike +

s +

+!! end + +!! test +Non-word characters don't terminate tag names (bug 17663, 40670, 52022) +!! input + doesn't work! + + doesn't work! + + works fine + +foo
+ +s.foo + + +!! result +

<b→> doesn't work! </b> +

<bä> doesn't work! </b> +

<boo> works fine </b> +

<s.foo>foo</s> +

<s.foo>s.foo</s.foo> +

<sub-ID#1> +

+!! end + +### +### Special characters +### + +!! test +Bare pipe character (bug 52363) +!! input +| +!! result +

| +

+!! end + +!! test +Bare pipe character from a template (bug 52363) +!! input +{{pipe}} +!! result +

| +

+!! end + ### ### test cases ### @@ -1215,6 +1310,22 @@ And a link !! end +!! test +Tabs don't trigger preformatted text +!! input + This is not + preformatted text. + This is preformatted text. + So is this. +!! result +

This is not + preformatted text. +

+
This is preformatted text.
+	So is this.
+
+!! end + !! test Ident preformatting with inline content !! input @@ -1661,6 +1772,20 @@ c !!end +!!test +1d. Indent-Pre and Comments +(Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order) +!!input + a + + b +!!result +
a
+
+
b
+
+!!end + !!test 2a. Indent-Pre and tables !!input @@ -1813,6 +1938,52 @@ b !! end +!! test +6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content +!! input + a + + + b + + c + +d +!! result +
a
+
+b
+
+
c
+
+
+

d +

+!! end + +!! test +7a. Indent-pre and category links +!! options +parsoid=wt2html,wt2wt +!! input + [[Category:foo]] +{{echo| [[Category:foo]]}} +!! result + +!! end + +!! test +7b. Indent-pre and category links +!! options +parsoid=wt2html,wt2wt +!! input + [[Category:foo]] a + [[Category:foo]] {{echo|b}} +!! result +
 a b
+
+!! end + ### ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric) ### @@ -3855,6 +4026,36 @@ Template-generated table cell attributes and cell content !! end +!! test +Template-generated table cell attributes and cell content (2) +!! input +{| +|align=center {{table_attribs}} +|} +!! result + + +
Foo +
+ +!! end + +!! test +Template-generated table cell attributes and cell content (3) +!! input +{| +|align=center {{table_cells}} +|} +!! result + + + + +
Foo Bar Baz +
+ +!! end + !! test Table with row followed by newlines and table heading !! input @@ -4763,6 +4964,46 @@ parsoid !! end +!! test +Optional colon in #REDIRECT +!! options +# the colon is archaic syntax. we support it for wt2html, but we +# don't care that it roundtrips back to the modern syntax. +parsoid=wt2html,html2html +!! input +#REDIRECT:[[Main Page]] +!! result + +!! end + +!! test +Whitespace in #REDIRECT with optional colon +!! options +# the colon and gratuitous whitespace is archaic syntax. we support +# it for wt2html, but we don't care that it roundtrips back to the +# modern syntax (without extra whitespace) +parsoid=wt2html,html2html +!! input + + #REDIRECT +: +[[Main Page]] +!! result + +!! end + +!! test +Piped link in #REDIRECT +!! options +# content after piped link is ignored. we support this syntax, +# but don't care that the piped link is lost when we roundtrip this. +parsoid=wt2html +!! input +#REDIRECT [[Main Page|bar]] +!! result + +!! end + !! test Redirect to category !! options @@ -4773,6 +5014,16 @@ parsoid=wt2html !! end +!! test +Redirect to category with URL encoding +!! options +parsoid=wt2html +!! input +#REDIRECT [[Category%3AFoo]] +!! result + +!! end + !! test Redirect to category page !! options @@ -4784,7 +5035,7 @@ parsoid=wt2html,html2html !! end !! test -Redirect to image page +Redirect to image page (1) !! options parsoid !! input @@ -4793,6 +5044,16 @@ parsoid !! end +!! test +Redirect to image page (2) +!! options +parsoid +!! input +#REDIRECT [[Image:Wiki.png]] +!! result + +!! end + !! test Redirect to language !! options @@ -4813,6 +5074,17 @@ parsoid !! end +!! test +Non-English #REDIRECT +!! options +parsoid +language=is +!! input +#TILVÍSUN [[Main Page]] +!! result + +!! end + ## ## XHTML tidiness ### @@ -5268,21 +5540,40 @@ Multiple list tags generated by templates !!end !!test -Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do +Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines !!input *a *b *c - + *d !!result
  • a
  • b
  • c +
  • d
-
  • d + +!!end + +!!test +Replacing whitespace with tabs still doesn't break the list (gerrit 78327) +!!input +*a + +*b + +*c + +*d +!!result +
    • a +
    • b +
    • c +
    • d
    !!end @@ -5329,6 +5620,18 @@ parsoid
    1. foo
      1. bar
    • foo
      • bar
    foo
    bar
    !! end +!! test +Parsoid: Test of whitespace serialization with Templated bullets +!! options +parsoid +!! input +* {{bullet}} +!! result +
      +
    • Bar
    • +
    +!! end + # ------------------------------------------------------------------------ # The next set of tests are about Parsoid's ability to handle badly nested # tags (parse, minimize scope of fixup, and roundtrip back) @@ -5405,6 +5708,11 @@ parsoid ### Magic Words ### +# Note that the current date is hard-coded as +# 1970-01-01T00:02:03Z (a Thursday) +# when running parser tests. The timezone is also fixed to GMT, so +# local date will be identical to current date. + !! test Magic Word: {{CURRENTDAY}} !! input @@ -5450,6 +5758,15 @@ Magic Word: {{CURRENTMONTH}}

    !! end +!! test +Magic Word: {{CURRENTMONTH1}} +!! input +{{CURRENTMONTH1}} +!! result +

    1 +

    +!! end + !! test Magic Word: {{CURRENTMONTHABBREV}} !! input @@ -5486,6 +5803,15 @@ Magic Word: {{CURRENTTIME}}

    !! end +!! test +Magic Word: {{CURRENTHOUR}} +!! input +{{CURRENTHOUR}} +!! result +

    00 +

    +!! end + !! test Magic Word: {{CURRENTWEEK}} (@bug 4594) !! input @@ -5504,6 +5830,51 @@ Magic Word: {{CURRENTYEAR}}

    !! end +!! test +Magic Word: {{CURRENTTIMESTAMP}} +!! input +{{CURRENTTIMESTAMP}} +!! result +

    19700101000203 +

    +!! end + +!! test +Magic Words LOCAL (UTC) +!! input +* {{LOCALMONTH}} +* {{LOCALMONTH1}} +* {{LOCALMONTHNAME}} +* {{LOCALMONTHNAMEGEN}} +* {{LOCALMONTHABBREV}} +* {{LOCALDAY}} +* {{LOCALDAY2}} +* {{LOCALDAYNAME}} +* {{LOCALYEAR}} +* {{LOCALTIME}} +* {{LOCALHOUR}} +* {{LOCALWEEK}} +* {{LOCALDOW}} +* {{LOCALTIMESTAMP}} +!! result +
    • 01 +
    • 1 +
    • January +
    • January +
    • Jan +
    • 1 +
    • 01 +
    • Thursday +
    • 1970 +
    • 00:02 +
    • 00 +
    • 1 +
    • 4 +
    • 19700101000203 +
    + +!! end + !! test Magic Word: {{FULLPAGENAME}} !! options @@ -5526,6 +5897,93 @@ title=[[User:Ævar Arnfjörð Bjarmason]]

    !! end +!! test +Magic Word: {{TALKSPACE}} +!! options +title=[[User:Ævar Arnfjörð Bjarmason]] +!! input +{{TALKSPACE}} +!! result +

    User talk +

    +!! end + +!! test +Magic Word: {{TALKSPACE}}, same namespace +!! options +title=[[User talk:Ævar Arnfjörð Bjarmason]] +!! input +{{TALKSPACE}} +!! result +

    User talk +

    +!! end + +!! test +Magic Word: {{TALKSPACE}}, main namespace +!! options +title=[[Parser Test]] +!! input +{{TALKSPACE}} +!! result +

    Talk +

    +!! end + +!! test +Magic Word: {{TALKSPACEE}} +!! options +title=[[User:Ævar Arnfjörð Bjarmason]] +!! input +{{TALKSPACEE}} +!! result +

    User_talk +

    +!! end + +!! test +Magic Word: {{SUBJECTSPACE}} +!! options +title=[[User talk:Ævar Arnfjörð Bjarmason]] +!! input +{{SUBJECTSPACE}} +!! result +

    User +

    +!! end + +!! test +Magic Word: {{SUBJECTSPACE}}, same namespace +!! options +title=[[User:Ævar Arnfjörð Bjarmason]] +!! input +{{SUBJECTSPACE}} +!! result +

    User +

    +!! end + +!! test +Magic Word: {{SUBJECTSPACE}}, main namespace +!! options +title=[[Parser Test]] +!! input +{{SUBJECTSPACE}} +!! result + +!! end + +!! test +Magic Word: {{SUBJECTSPACEE}} +!! options +title=[[User talk:Ævar Arnfjörð Bjarmason]] +!! input +{{SUBJECTSPACEE}} +!! result +

    User +

    +!! end + !! test Magic Word: {{NAMESPACE}} !! options @@ -5559,6 +6017,116 @@ title=[[User:Ævar Arnfjörð Bjarmason]]

    !! end +!! test +Magic Word: {{SUBPAGENAME}} +!! options +title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage +!! input +{{SUBPAGENAME}} +!! result +

    sub ö +

    +!! end + +!! test +Magic Word: {{SUBPAGENAMEE}} +!! options +title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage +!! input +{{SUBPAGENAMEE}} +!! result +

    sub_%C3%B6 +

    +!! end + +!! test +Magic Word: {{ROOTPAGENAME}} +!! options +title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage +!! input +{{ROOTPAGENAME}} +!! result +

    Ævar Arnfjörð Bjarmason +

    +!! end + +!! test +Magic Word: {{ROOTPAGENAMEE}} +!! options +title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage +!! input +{{ROOTPAGENAMEE}} +!! result +

    %C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason +

    +!! end + +!! test +Magic Word: {{BASEPAGENAME}} +!! options +title=[[Ævar Arnfjörð Bjarmason/sub]] subpage +!! input +{{BASEPAGENAME}} +!! result +

    Ævar Arnfjörð Bjarmason +

    +!! end + +!! test +Magic Word: {{BASEPAGENAMEE}} +!! options +title=[[Ævar Arnfjörð Bjarmason/sub]] subpage +!! input +{{BASEPAGENAMEE}} +!! result +

    %C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason +

    +!! end + +!! test +Magic Word: {{TALKPAGENAME}} +!! options +title=[[User:Ævar Arnfjörð Bjarmason]] +!! input +{{TALKPAGENAME}} +!! result +

    User talk:Ævar Arnfjörð Bjarmason +

    +!! end + +!! test +Magic Word: {{TALKPAGENAMEE}} +!! options +title=[[User:Ævar Arnfjörð Bjarmason]] +!! input +{{TALKPAGENAMEE}} +!! result +

    User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason +

    +!! end + +!! test +Magic Word: {{SUBJECTPAGENAME}} +!! options +title=[[User talk:Ævar Arnfjörð Bjarmason]] +!! input +{{SUBJECTPAGENAME}} +!! result +

    User:Ævar Arnfjörð Bjarmason +

    +!! end + +!! test +Magic Word: {{SUBJECTPAGENAMEE}} +!! options +title=[[User talk:Ævar Arnfjörð Bjarmason]] +!! input +{{SUBJECTPAGENAMEE}} +!! result +

    User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason +

    +!! end + !! test Magic Word: {{NUMBEROFFILES}} !! input @@ -5641,6 +6209,15 @@ Magic Word: {{SCRIPTPATH}}

    !! end +!! test +Magic Word: {{STYLEPATH}} +!! input +{{STYLEPATH}} +!! result +

    /skins +

    +!! end + !! test Magic Word: {{SERVER}} !! input @@ -6491,6 +7068,34 @@ Un-closed !! result !! end +# TODO: test with DOM fragment reuse! +!! test +Parsoid: DOM fragment reuse +!! options +parsoid=wt2wt,wt2html +!! input +a{{echo|b
    c}}d + +a{{echo|b +
    +c}}d + +{{echo|a + +
    + +b}} +!! result +ab +
    cd +

    ab

    +
    +

    cd

    +

    a

    +
    +

    b

    +!! end + ### ### and in attributes ### @@ -7694,6 +8299,62 @@ But not inside includeonly {{subst:Foo}} !! end +!! test +Parsoid: Recognize nowiki with trailing space in tags +!! options +parsoid=wt2html +!! input +
    [[foo]] + +ab + +cd + +ef +!! result +

    <div>[[foo]]

    +

    ab

    +

    cd

    +

    ef

    +!! end + +!! test +Parsoid: Recognize nowiki with odd capitalization +!! options +parsoid=wt2html +!! input +
    [[foo]] +!! result +

    <div>[[foo]]

    +!! end + + +!! test +Parsoid: Escape nowiki with trailing space in tags +!! options +parsoid=html2wt +!! input +<nowiki > foo </nowiki > + +a<nowiki />b + +c<nowiki/ >d +!! result +

    <nowiki > foo </nowiki >

    +

    a<nowiki />b

    +

    c<nowiki/ >d

    +!! end + +!! test +Parsoid: Escape weird noWikI capitalizations +!! options +parsoid=html2wt +!! input +<noWikI > foo </NoWikI > +!! result +

    <noWikI > foo </NoWikI >

    +!! end + ### ### Message transform tests ### @@ -7800,8 +8461,13 @@ Special:Foobar_nonexistent ### ### Images ### +### For Parsoid-specific tests, see +#### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images + !! test -Simple image +Simple image (php) +!! options +php !! input [[Image:foobar.jpg]] !! result @@ -7810,16 +8476,20 @@ Simple image !! end !! test -Right-aligned image +Simple image (parsoid) +!! options +parsoid=wt2html !! input -[[Image:foobar.jpg|right]] +[[Image:foobar.jpg]] !! result -
    Foobar.jpg
    - +

    +

    !! end !! test -Simple image (using File: namespace, now canonical) +Simple image (using File: namespace, now canonical) (php) +!! options +php !! input [[File:foobar.jpg]] !! result @@ -7828,29 +8498,108 @@ Simple image (using File: namespace, now canonical) !! end !! test -Image with caption +Simple image (using File: namespace, now canonical) (parsoid) +!! options +parsoid +!! input +[[File:Foobar.jpg]] +!! result +

    +

    +!! end + +!! test +Right-aligned image (php) +!! options +php +!! input +[[Image:foobar.jpg|right]] +!! result +
    Foobar.jpg
    + +!! end + +!! test +Right-aligned image (parsoid) +!! options +parsoid +!! input +[[File:Foobar.jpg|right]] +!! result +
    +!! end + +!! test +Image with caption (php) +!! options +php +!! input +[[File:Foobar.jpg|right|Caption text]] +!! result +
    Caption text
    + +!! end + +!! test +Image with caption (parsoid) +!! options +parsoid +!! input +[[File:Foobar.jpg|right|Caption text]] +!! result +
    Caption text
    +!! end + +!! test +Image with empty attribute (php) +!! options +php !! input -[[Image:foobar.jpg|right|Caption text]] +[[File:Foobar.jpg|right||Caption text]] !! result
    Caption text
    !! end !! test -Image with empty attribute +Image with empty attribute (parsoid) +!! options +parsoid=wt2html +!! input +[[File:Foobar.jpg|right||Caption text]] +!! result +
    Caption text
    +!! end + +!! test +Image with attributes from template (php) +!! options +php !! input -[[Image:foobar.jpg|right||Caption text]] +[[File:Foobar.jpg|{{image_attribs}}]] !! result
    Caption text
    !! end !! test -Image with link tails +Image with attributes from template (parsoid) +!! options +parsoid +!! input +[[File:Foobar.jpg|{{image_attribs}}]] +!! result +
    Caption text
    +!! end + +!! test +Image with link tails (php) +!! options +php !! input -123[[Image:foobar.jpg]]456 -123[[Image:foobar.jpg|right]]456 -123[[Image:foobar.jpg|thumb]]456 +123[[File:Foobar.jpg]]456 +123[[File:Foobar.jpg|right]]456 +123[[File:Foobar.jpg|thumb]]456 !! result

    123Foobar.jpg456

    @@ -7860,20 +8609,48 @@ Image with link tails !! end !! test -Image with multiple captions -- only last one is accepted +Image with link tails (parsoid) +!! options +parsoid +!! input +123[[File:Foobar.jpg]]456 +123[[File:Foobar.jpg|right]]456 +123[[File:Foobar.jpg|thumb]]456 +!! result +

    123456

    +123
    456 +123
    456 +!! end + +!! test +Image with multiple captions -- only last one is accepted (php) +!! options +php !! input -[[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]] +[[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]] !! result
    Caption3 - accepted
    !! end !! test -Image with width attribute at different positions +Image with multiple captions -- only last one is accepted (parsoid) +!! options +parsoid +!! input +[[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]] +!! result +
    Caption3 - accepted
    +!! end + +!! test +Image with width attribute at different positions (php) +!! options +php !! input -[[Image:foobar.jpg|200px|right|Caption]] -[[Image:foobar.jpg|right|200px|Caption]] -[[Image:foobar.jpg|right|Caption|200px]] +[[File:Foobar.jpg|200px|right|Caption]] +[[File:Foobar.jpg|right|200px|Caption]] +[[File:Foobar.jpg|right|Caption|200px]] !! result
    Caption
    Caption
    @@ -7882,23 +8659,84 @@ Image with width attribute at different positions !! end !! test -Image with link parameter, wiki target +Image with width attribute at different positions (parsoid) +!! options +parsoid +!! input +[[File:Foobar.jpg|200px|right|Caption]] +[[File:Foobar.jpg|right|200px|Caption]] +[[File:Foobar.jpg|right|Caption|200px]] +!! result +
    Caption
    +
    Caption
    +
    Caption
    +!! end + +!! test +Image with link parameter, wiki target (php) +!! options +php !! input -[[Image:foobar.jpg|link=Target page]] +[[File:Foobar.jpg|link=Main Page]] !! result -

    Foobar.jpg +

    Foobar.jpg

    !! end !! test -Image with link parameter, URL target +Image with link parameter, wiki target (parsoid) +!! options +parsoid !! input -[[Image:foobar.jpg|link=http://example.com/]] +[[File:Foobar.jpg|link=Main Page]] +!! result +

    +!! end + +!! test +Image with link parameter, URL target (php) +!! options +php +!! input +[[File:Foobar.jpg|link=http://example.com/]] !! result

    Foobar.jpg

    !! end +# parsoid bug 49293 (part 1) +!! test +Image with link parameter, URL target (parsoid) +!! options +parsoid +!! input +[[File:Foobar.jpg|link=http://example.com/]] +!! result +

    +!! end + +!! test +Image with link parameter, protocol-less URL target (php) +!! options +php +!! input +[[File:Foobar.jpg|link=//example.com/]] +!! result +

    Foobar.jpg +

    +!! end + +# parsoid bug 49293 (part 2) +!! test +Image with link parameter, protocol-less URL target (parsoid) +!! options +parsoid +!! input +[[File:Foobar.jpg|link=//example.com/]] +!! result +

    +!! end + !! test Image with link parameter, wgExternalLinkTarget !! input @@ -7944,32 +8782,68 @@ wgExternalLinkTarget='foobar' !! end !! test -Image with empty link parameter +Image with empty link parameter (php) +!! options +php !! input -[[Image:foobar.jpg|link=]] +[[File:Foobar.jpg|link=]] !! result

    Foobar.jpg

    !! end !! test -Image with link parameter (wiki target) and unnamed parameter +Image with empty link parameter (parsoid) +!! options +parsoid +!! input +[[File:Foobar.jpg|link=]] +!! result +

    +!! end + +!! test +Image with link parameter (wiki target) and unnamed parameter (php) +!! options +php !! input -[[Image:foobar.jpg|link=Target page|Title]] +[[File:Foobar.jpg|link=Main Page|Title]] !! result -

    Title +

    Title

    !! end !! test -Image with link parameter (URL target) and unnamed parameter +Image with link parameter (wiki target) and unnamed parameter (parsoid) +!! options +parsoid !! input -[[Image:foobar.jpg|link=http://example.com/|Title]] +[[File:Foobar.jpg|link=Main Page|Title]] +!! result +

    +!! end + +!! test +Image with link parameter (URL target) and unnamed parameter (php) +!! options +php +!! input +[[File:Foobar.jpg|link=http://example.com/|Title]] !! result

    Title

    !! end +!! test +Image with link parameter (URL target) and unnamed parameter (parsoid) +!! options +parsoid +!! input +[[File:Foobar.jpg|link=http://example.com/|Title]] +!! result +

    +!! end + !! test Thumbnail image with link parameter !! options @@ -8348,54 +9222,8 @@ wgEnableUploads=0 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images # Currently imperfect due to a flaw in the Parsoid testrunner # Work in progress - -!! test -Parsoid-specific image handling - simple image -!! options -parsoid -!! input -[[Image:Foobar.jpg]] -!! result -

    - - - - - -

    -!! end - -!! test -Parsoid-specific image handling - simple image without link -!! options -parsoid -!! input -[[Image:Foobar.jpg|link=]] -!! result -

    - - - - - -

    -!! end - -!! test -Parsoid-specific image handling - simple image with specific link -!! options -parsoid -!! input -[[Image:Foobar.jpg|link=Main Page]] -!! result -

    - - - - - -

    -!! end +# THESE TESTS SHOULD BE MOVED UP and merged with the php-specific +# image tests. !! test Parsoid-specific image handling - simple image with size and middle alignment @@ -8407,7 +9235,7 @@ parsoid

    - +

    @@ -8423,7 +9251,7 @@ parsoid

    - +

    @@ -8439,7 +9267,7 @@ parsoid

    - +

    @@ -8454,7 +9282,7 @@ parsoid !! result
    - +
    caption content
    @@ -8469,7 +9297,7 @@ parsoid !! result
    - +
    caption
    @@ -8484,7 +9312,7 @@ parsoid !! result
    - +
    caption
    @@ -8499,7 +9327,7 @@ parsoid !! result
    - +
    caption
    @@ -8515,7 +9343,7 @@ parsoid

    - +

    !! end @@ -8530,7 +9358,7 @@ parsoid #

    # # -#Foobar.jpg +#Foobar.jpg # #abc # @@ -10088,7 +10916,7 @@ Expansion of multi-line templates in attribute values (bug 6255 sanity check 2) !! end ### -### Parser hooks (see maintenance/parserTestsParserHook.php for the extension) +### Parser hooks (see tests/parser/parserTestsParserHook.php for the extension) ### !! test Parser hook: empty input @@ -10253,7 +11081,7 @@ array ( !! end ### -### (see maintenance/parserTestsStaticParserHook.php for the extension) +### (see tests/parser/parserTestsParserHook.php for the extension) ### !! test @@ -11887,21 +12715,26 @@ Special:Search page linking. !! test Say the magic word +!! options +title=[[Parser test]] !! input * {{PAGENAME}} +* {{PAGENAMEE}} +* {{FULLPAGENAME}} +* {{FULLPAGENAMEE}} * {{BASEPAGENAME}} +* {{BASEPAGENAMEE}} * {{SUBPAGENAME}} * {{SUBPAGENAMEE}} * {{ROOTPAGENAME}} * {{ROOTPAGENAMEE}} -* {{BASEPAGENAME}} -* {{BASEPAGENAMEE}} * {{TALKPAGENAME}} * {{TALKPAGENAMEE}} * {{SUBJECTPAGENAME}} * {{SUBJECTPAGENAMEE}} * {{NAMESPACEE}} * {{NAMESPACE}} +* {{NAMESPACENUMBER}} * {{TALKSPACE}} * {{TALKSPACEE}} * {{SUBJECTSPACE}} @@ -11909,7 +12742,9 @@ Say the magic word * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}} !! result

    • Parser test +
    • Parser_test
    • Parser test +
    • Parser_test
    • Parser test
    • Parser_test
    • Parser test @@ -11922,6 +12757,7 @@ Say the magic word
    • Parser_test
    • +
    • 0
    • Talk
    • Talk
    • @@ -11946,40 +12782,40 @@ image4 |300px| centre * image6 !! result -