X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FparserTests.txt;h=03763613a80f9574631d22ae7363b13c3ed81a61;hb=1bb1a2c843a6defa2961ea5acb66397e0ecd0f86;hp=626ca4ba9538ed76c335392578df711ecdc61c93;hpb=d1aaba0a64104927d1225e9906274b4fab67e221;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 626ca4ba95..03763613a8 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -156,7 +156,7 @@ nowiki 3 !! end ### -### comment test cases +### Comments ### !! test Comment test 1 @@ -239,7 +239,7 @@ And a link !! end ### -### Definition list +### Definition lists ### !! test Simple definition @@ -276,7 +276,7 @@ Definition list with URL link !! input ; http://example.com/ : definition !! result -
Non-bracketed: http://example.com +
Non-bracketed: http://example.com
!! end @@ -349,8 +349,12 @@ Non-bracketed: http://example.com External links: numbered !! input Numbered: [http://example.com] +Numbered: [http://example.net] +Numbered: [http://example.org] !! result -Numbered: [1] (http://example.com) +
Numbered: [1] +Numbered: [2] +Numbered: [3]
!!end @@ -359,16 +363,16 @@ External links: specified text !! input Specified text: [http://example.com link] !! result -Specified text: link (http://example.com) +
Specified text: link
!!end !! test External links: trail !! input -Trail (not sure if this is meant to work): [http://example.com link]s +Linktrails should not work for external links: [http://example.com link]s !! result -Trail (not sure if this is meant to work): links (http://example.com) +
Linktrails should not work for external links: links
!! end @@ -377,7 +381,7 @@ External links: dollar sign in URL !! input http://example.com/1$2345 !! result - !! end @@ -386,7 +390,7 @@ External links: dollar sign in URL (named) !! input [http://example.com/1$2345] !! result -[1] (http://example.com/1$2345) +
!!end @@ -413,7 +417,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 +426,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 +435,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 +444,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 +453,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 +462,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 +471,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: (http://example.com)
+
Old & use: http://x&y +
Old & use: http://x&y +
+!! end + +!! test +External links: encoded ampersand +!! input +Old & use: http://x&y +!! result +Old & use: http://x&y +
+!! end + +!! test +External links: [raw ampersand] +!! input +Old & use: [http://x&y] +!! result +Old & use: [1] +
+!! end + +!! test +External links: [encoded ampersand] +!! input +Old & use: [http://x&y] +!! result +Old & use: [1]
!! end @@ -485,7 +516,7 @@ External links: www.jpeg.org (bug 554) !! input http://www.jpeg.org !!result - !! end @@ -494,7 +525,88 @@ 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 + +!! test +BUG 361: URL inside bracketed URL +!! input +[http://www.example.com/foo http://www.example.com/bar] +!! result + +!! end + +!! test +BUG 361: URL within URL, not bracketed +!! input +http://www.example.com/foo?=http://www.example.com/bar +!! result +http://www.example.com/foo?=http://www.example.com/bar +
+!! end + +!! test +BUG 289: ">"-token in URL-tail +!! input +http://www.example.com/http://www.example.com/<hello> +
+!!end + +!! test +BUG 289: literal ">"-token in URL-tail +!! input +http://www.example.com/html +!! result +http://www.example.com/html +
+!!end + +!! test +BUG 289: ">"-token in bracketed URL +!! input +[http://www.example.com/http://www.example.com/"hello" +
+!!end + +!! test +BUG 289: literal double quote in bracketed URL +!! input +[http://www.example.com/"hello" stuff] +!! result + +!!end + +!! test +External links: invalid character +!! input +[http://www.example.com test] +!! result +