From 370e83bb0dfd0c70de268c93bf07ad5ee0897192 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 15 Aug 2008 01:29:47 +0200 Subject: Update auf 1.13.0 --- maintenance/parserTests.txt | 179 ++++++++++++++++++++++++++++++++------------ 1 file changed, 132 insertions(+), 47 deletions(-) (limited to 'maintenance/parserTests.txt') diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index b1ddb9b0..07c897f1 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -461,7 +461,7 @@ Definition list with wikilink containing colon !! input ; [[Help:FAQ]]: The least-read page on Wikipedia !! result -
Help:FAQ
The least-read page on Wikipedia +
Help:FAQ
The least-read page on Wikipedia
!! end @@ -536,11 +536,11 @@ External links: numbered !! input Numbered: [http://example.com] Numbered: [http://example.net] -Numbered: [http://example.org] +Numbered: [http://example.com] !! result

Numbered: [1] Numbered: [2] -Numbered: [3] +Numbered: [3]

!!end @@ -887,7 +887,7 @@ External links: wiki links within external link (Bug 3695) !! input [http://example.com [[wikilink]] embedded in ext link] !! result -

wikilink embedded in ext link +

wikilink embedded in ext link

!! end @@ -1316,7 +1316,7 @@ Broken link !! input [[Zigzagzogzagzig]] !! result -

Zigzagzogzagzig +

Zigzagzogzagzig

!! end @@ -1332,9 +1332,9 @@ xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main !! test Link with suffix !! input -[[Main Page]]xxx, [[Main Page]]XXX +[[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!! !! result -

Main Pagexxx, Main PageXXX +

Main Pagexxx, Main PageXXX, Main Page!!!

!! end @@ -1370,7 +1370,7 @@ Link to namespaces !! input [[Talk:Parser testing]], [[Meta:Disclaimers]] !! result -

Talk:Parser testing, Meta:Disclaimers +

Talk:Parser testing, Meta:Disclaimers

!! end @@ -1379,7 +1379,7 @@ Piped link to namespace !! input [[Meta:Disclaimers|The disclaimers]] !! result -

The disclaimers +

The disclaimers

!! end @@ -1397,7 +1397,7 @@ Link containing % (not as a hex sequence) !! input [[7% Solution]] !! result -

7% Solution +

7% Solution

!! end @@ -1406,7 +1406,7 @@ Link containing % as a single hex sequence interpreted to char !! input [[7%25 Solution]] !! result -

7% Solution +

7% Solution

!!end @@ -1452,7 +1452,7 @@ Link containing double-single-quotes '' in text (bug 4598 sanity check) !! input Some [[Link|pretty ''italics'' and stuff]]! !! result -

Some pretty italics and stuff! +

Some pretty italics and stuff!

!! end @@ -1461,16 +1461,16 @@ Link containing double-single-quotes '' in text embedded in italics (bug 4598 sa !! input ''Some [[Link|pretty ''italics'' and stuff]]! !! result -

Some pretty italics and stuff! +

Some pretty italics and stuff!

!! end !! test Plain link to URL !! input -[[http://www.example.org]] +[[http://www.example.com]] !! result -

[[1]] +

[[1]]

!! end @@ -1481,16 +1481,16 @@ Plain link to URL # ---- # I'm changing it to match the current output--it arguably makes more # sense in the light of the test above. Old expected result was: -#

Piped link to URL: an example URL +#

Piped link to URL: an example URL #

# But I think this test is bordering on "garbage in, garbage out" anyway. # -- wtm !! test Piped link to URL !! input -Piped link to URL: [[http://www.example.org|an example URL]] +Piped link to URL: [[http://www.example.com|an example URL]] !! result -

Piped link to URL: [example URL] +

Piped link to URL: [example URL]

!! end @@ -2084,7 +2084,7 @@ Magic links: internal link to RFC (bug 479) !! input [[RFC 123]] !! result -

RFC 123 +

RFC 123

!! end @@ -2102,7 +2102,7 @@ Magic links: ISBN (bug 1937) !! input ISBN 0-306-40615-2 !! result -

ISBN 0-306-40615-2 +

ISBN 0-306-40615-2

!! end @@ -2124,7 +2124,7 @@ Nonexistant template !! input {{thistemplatedoesnotexist}} !! result -

Template:Thistemplatedoesnotexist +

Template:Thistemplatedoesnotexist

!! end @@ -2306,7 +2306,7 @@ Template with thumb image (with link in description) {{paramtest| param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}} !! result -This is a test template with parameter +This is a test template with parameter !! end @@ -3022,7 +3022,7 @@ msg !! input {{#special:Recentchanges}} !! result -Special:Recentchanges +Special:RecentChanges !! end !! test @@ -3081,7 +3081,7 @@ Add test with existing image page !! input [[:Image:test]] !! result -

Image:test +

Image:test

!! end @@ -3108,7 +3108,7 @@ BUG 1887: A ISBN with a thumbnail !! input [[Image:foobar.jpg|thumb|ISBN 1235467890]] !! result - + !! end @@ -3281,7 +3281,7 @@ Disabled subpages !! input [[/subpage]] !! result -

/subpage +

/subpage

!! end @@ -3292,7 +3292,7 @@ subpage title=[[Page]] !! input {{/Subpage}} !! result -

Page/Subpage +

Page/Subpage

!! end @@ -3324,6 +3324,15 @@ cat MediaWiki User's Guide !! end +!! test +PAGESINCATEGORY invalid title fatal (r33546 fix) +!! input +{{PAGESINCATEGORY:}} +!! result +

0 +

+!! end + ### ### Inter-language links ### @@ -3551,6 +3560,17 @@ Resolving duplicate section names !! end +!! test +Resolving duplicate section names with differing case (bug 10721) +!! input +== Foo bar == +== Foo Bar == +!! result +

[edit] Foo bar

+

[edit] Foo Bar

+ +!! end + !! article Template:sections !! text @@ -3594,6 +3614,29 @@ Link inside a section heading !! end +!! test +TOC regression (bug 12077) +!! input +__TOC__ +== title 1 == +=== title 1.1 === +== title 2 == +!! result +

Contents

+ +
+

[edit] title 1

+

[edit] title 1.1

+

[edit] title 2

+ +!! end !! test BUG 1219 URL next to image (good) @@ -3804,7 +3847,7 @@ Image link to nonexistent file (bug 1850 - good) !! input [[:Image:No such.jpg]] !! result -

Image:No such.jpg +

Image:No such.jpg

!! end @@ -4518,6 +4561,34 @@ Self closed html pairs (bug 5487) # # +!! test +Punctuation: nbsp before exclamation +!! input +C'est grave ! +!! result +

C'est grave ! +

+!! end + +!! test +Punctuation: CSS !important (bug 11874) +!! input +
important
+!! result +
important
+ +!!end + +!! test +Punctuation: CSS ! important (bug 11874; with space after) +!! input +
important
+!! result +
important
+ +!!end + + !! test HTML bullet list, closed tags (bug 5497) !! input @@ -5037,7 +5108,7 @@ Transclusion of nonexistent MediaWiki message !! input {{MediaWiki:Mainpagexxx}} !!result -

MediaWiki:Mainpagexxx +

MediaWiki:Mainpagexxx

!! end @@ -5795,6 +5866,20 @@ start xxx !! end +!! test +Section replacement test with initial whitespace (bug 13728) +!! options +replace=2,"xxx" +!! input + Preformatted initial line +==a== +===a=== +!! result + Preformatted initial line +==a== +xxx +!! end + !! test Section extraction, heading followed by pre with 20 spaces (bug 6398) @@ -5925,7 +6010,7 @@ Say the magic word
  • Talk
  • -
  • Template:Dynamic +
  • Template:Dynamic
  • !! end @@ -6014,7 +6099,7 @@ ISBN code coverage !! input ISBN 978-0-1234-56 789 !! result -

    ISBN 978-0-1234-56 789 +

    ISBN 978-0-1234-56 789

    !! end @@ -6032,7 +6117,7 @@ Double ISBN !! input ISBN ISBN 1234567890 !! result -

    ISBN ISBN 1234567890 +

    ISBN ISBN 1234567890

    !! end @@ -6050,7 +6135,7 @@ Double RFC with a wiki link !! input RFC [[RFC 1234]] !! result -

    RFC RFC 1234 +

    RFC RFC 1234

    !! end @@ -6155,7 +6240,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../|L2]] !! result -

    L2 +

    L2

    !! end @@ -6167,7 +6252,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../]] !! result -

    Subpage test/L1/L2 +

    Subpage test/L1/L2

    !! end @@ -6181,7 +6266,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../../|L1]]2 !! result -

    L1 +

    L1

    !! end @@ -6194,7 +6279,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../..]] !! result -

    ../.. +

    ../..

    !! end @@ -6207,7 +6292,7 @@ subpage title=[[Subpage test/L1/L2/L3]] !! input [[../../////]] !! result -

    Subpage test/L1 +

    Subpage test/L1

    !! end @@ -6248,7 +6333,7 @@ RAW magic word !! input {{RAW:QUERTY}} !! result -

    Template:QUERTY +

    Template:QUERTY

    !! end @@ -6308,10 +6393,10 @@ Out-of-order TOC heading levels
  • 1.2 3
  • -
  • 2 1 +
  • 2 1
  • @@ -6319,9 +6404,9 @@ Out-of-order TOC heading levels

    [edit] 2

    [edit] 6

    [edit] 3

    -

    [edit] 1

    +

    [edit] 1

    [edit] 5
    -

    [edit] 2

    +

    [edit] 2

    !! end @@ -6341,7 +6426,7 @@ ISBN with space-delimited number !! input ISBN 92 9017 032 8 !! result -

    ISBN 92 9017 032 8 +

    ISBN 92 9017 032 8

    !! end @@ -6366,7 +6451,7 @@ ISBN 1234567890 ISBN 12345678901 !! result

    ISBN 123456789 -

    ISBN 1234567890 +

    ISBN 1234567890

    ISBN 12345678901

    !! end @@ -6379,8 +6464,8 @@ ISBN 1-234-56789-0 - 2006 ISBN 1 234 56789 0 - 2006 !! result -

    ISBN 1-234-56789-0 - 2006 -

    ISBN 1 234 56789 0 - 2006 +

    ISBN 1-234-56789-0 - 2006 +

    ISBN 1 234 56789 0 - 2006

    !! end -- cgit v1.2.2