From 7c27c663b7ec9000f256de07951ba81932ed708b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 19 Jan 2005 09:06:50 +0000 Subject: [PATCH] Update for tomg's changes to external link formatting and TOC. Currently passing 133 out of 136 tests. --- maintenance/parserTests.txt | 115 ++++++++++++++++++------------------ 1 file changed, 58 insertions(+), 57 deletions(-) diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index dcb788747f..5cb7e1fabf 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -276,7 +276,7 @@ Definition list with URL link !! input ; http://example.com/ : definition !! result -
http://example.com/ 
definition +
http://example.com/ 
definition
!! end @@ -286,7 +286,7 @@ Definition list with bracketed URL link !! input ;[http://www.google.com/ Google]:Number one search engine !! result -
Google (http://www.google.com/)
Number one search engine +
Google
Number one search engine
!! end @@ -307,7 +307,7 @@ Definition list with wikilink containing colon !! input ; news:alt.wikipedia.rox: This isn't even a real newsgroup! !! result -
news:alt.wikipedia.rox
This isn't even a real newsgroup! +
news:alt.wikipedia.rox
This isn't even a real newsgroup!
!! end @@ -317,7 +317,7 @@ Malformed definition list with colon !! input ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop !! result -
news:alt.wikipedia.rox -- don't crash or enter an infinite loop +
news:alt.wikipedia.rox -- don't crash or enter an infinite loop
!! end @@ -327,7 +327,7 @@ Definition lists: colon in external link text !! input ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up !! result -
Wikipedia : The Next Generation (http://www.wikipedia2.org/)
OK, I made that up +
Wikipedia : The Next Generation
OK, I made that up
!! end @@ -341,7 +341,7 @@ External links: non-bracketed !! input Non-bracketed: http://example.com !! result -

Non-bracketed: http://example.com +

Non-bracketed: http://example.com

!! end @@ -350,7 +350,7 @@ External links: numbered !! input Numbered: [http://example.com] !! result -

Numbered: [1] (http://example.com) +

Numbered: [1]

!!end @@ -359,7 +359,7 @@ External links: specified text !! input Specified text: [http://example.com link] !! result -

Specified text: link (http://example.com) +

Specified text: link

!!end @@ -368,7 +368,7 @@ External links: trail !! input Trail (not sure if this is meant to work): [http://example.com link]s !! result -

Trail (not sure if this is meant to work): links (http://example.com) +

Trail (not sure if this is meant to work): links

!! end @@ -377,7 +377,7 @@ External links: dollar sign in URL !! input http://example.com/1$2345 !! result -

http://example.com/1$2345 +

http://example.com/1$2345

!! end @@ -386,7 +386,7 @@ External links: dollar sign in URL (named) !! input [http://example.com/1$2345] !! result -

[1] (http://example.com/1$2345) +

[1]

!!end @@ -413,7 +413,7 @@ Link to non-http image, no img tag !! input Link to non-http image, no img tag: ftp://example.com/test.jpg !! result -

Link to non-http image, no img tag: ftp://example.com/test.jpg +

Link to non-http image, no img tag: ftp://example.com/test.jpg

!! end @@ -422,7 +422,7 @@ External links: terminating separator !! input Terminating separator: http://example.com/thing, !! result -

Terminating separator: http://example.com/thing, +

Terminating separator: http://example.com/thing,

!! end @@ -431,7 +431,7 @@ External links: intervening separator !! input Intervening separator: http://example.com/1,2,3 !! result -

Intervening separator: http://example.com/1,2,3 +

Intervening separator: http://example.com/1,2,3

!! end @@ -440,7 +440,7 @@ External links: old bug with URL in query !! input Old bug with URL in query: [http://example.com/thing?url=http://example.com link] !! result -

Old bug with URL in query: link (http://example.com/thing?url=http://example.com) +

Old bug with URL in query: link

!! end @@ -449,7 +449,7 @@ External links: old URL-in-URL bug, mixed protocols !! input And again with mixed protocols: [ftp://example.com?url=http://example.com link] !! result -

And again with mixed protocols: link (ftp://example.com?url=http://example.com) +

And again with mixed protocols: link

!!end @@ -458,7 +458,7 @@ External links: URL in text !! input URL in text: [http://example.com http://example.com] !! result -

URL in text: http://example.com +

URL in text: http://example.com

!! end @@ -467,7 +467,7 @@ External links: Clickable images !! input ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png] !! result -

ja-style clickable images: Ncwikicol.png (http://example.com) +

ja-style clickable images: Ncwikicol.png

!!end @@ -476,7 +476,7 @@ External links: raw ampersand !! input Old & use: http://x&y !! result -

Old & use: http://x&y +

Old & use: http://x&y

!! end @@ -485,7 +485,7 @@ External links: www.jpeg.org (bug 554) !! input http://www.jpeg.org !!result -

http://www.jpeg.org +

http://www.jpeg.org

!! end @@ -494,7 +494,7 @@ External links: URL within URL (original bug 2) !! input [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp] !! result -

[1] (http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp) +

[1]

!! end @@ -503,7 +503,7 @@ BUG 361: URL inside bracketed URL !! input [http://www.example.com/foo http://www.example.com/bar] !! result -

http://www.example.com/bar (http://www.example.com/foo) +

http://www.example.com/bar

!! end @@ -512,7 +512,7 @@ BUG 289: ">"-token in URL-tail !! input http://www.example.com/ !! result -

http://www.example.com/<hello> +

http://www.example.com/<hello>

!!end @@ -521,7 +521,7 @@ BUG 289: literal ">"-token in URL-tail !! input http://www.example.com/html !! result -

http://www.example.com/html +

http://www.example.com/html

!!end @@ -530,7 +530,7 @@ BUG 289: ">"-token in bracketed URL !! input [http://www.example.com/ stuff] !! result -

<hello> stuff (http://www.example.com/) +

<hello> stuff

!!end @@ -539,7 +539,7 @@ BUG 289: literal ">"-token in bracketed URL !! input [http://www.example.com/html stuff] !! result -

html stuff (http://www.example.com/) +

html stuff

!!end @@ -548,7 +548,7 @@ BUG 289: literal double quote at end of URL !! input http://www.example.com/"hello" !! result -

http://www.example.com/"hello" +

http://www.example.com/"hello"

!!end @@ -557,7 +557,7 @@ BUG 289: literal double quote in bracketed URL !! input [http://www.example.com/"hello" stuff] !! result -

"hello" stuff (http://www.example.com/) +

"hello" stuff

!!end @@ -566,7 +566,7 @@ External links: invalid character !! input [http://www.example.com test] !! result -

[http://www.example.com test] +

[http://www.example.com test]

!! end @@ -887,7 +887,7 @@ Plain link to URL !! input [[http://www.example.org]] !! result -

[[1] (http://www.example.org)] +

[[1]]

!! end @@ -907,7 +907,7 @@ Piped link to URL !! input Piped link to URL: [[http://www.example.org|an example URL]] !! result -

Piped link to URL: [example URL (http://www.example.org|an)] +

Piped link to URL: [example URL]

!! end @@ -1488,7 +1488,7 @@ Thumbnail image caption with a free URL !! input [[Image:foobar.jpg|thumb|http://example.com]] !! result - + !! end @@ -1673,29 +1673,30 @@ title=[[Parser test script]] Some text ===Another headline=== !! result -
-Table of contents
- -
+

Headline 1

Subheadline 1

Skipping a level
@@ -1773,7 +1774,7 @@ Bug 1219 URL next to image (good) !! input http://example.com [[Image:foobar.jpg]] !! result -

http://example.com Image:foobar.jpg +

http://example.com Image:foobar.jpg

!!end @@ -1782,7 +1783,7 @@ Bug 1219 URL next to image (broken) !! input http://example.com[[Image:foobar.jpg]] !! result -

http://example.comImage:foobar.jpg +

http://example.comImage:foobar.jpg

!!end @@ -1791,7 +1792,7 @@ Bug 1186 news: in the middle of text !! input http://en.wikinews.org/wiki/Wikinews:Workplace !! result -

http://en.wikinews.org/wiki/Wikinews:Workplace +

http://en.wikinews.org/wiki/Wikinews:Workplace

!!end -- 2.20.1