From a86492513567ac59de1e631676ccc37eb0d0ec7a Mon Sep 17 00:00:00 2001 From: Wil Mahan Date: Thu, 23 Sep 2004 00:31:22 +0000 Subject: [PATCH] make some more tests work --- maintenance/parserTests.txt | 51 +++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index d1ae02fd21..a7a2d6ccbf 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1,9 +1,6 @@ # MediaWiki Parser test cases # see also http://meta.wikimedia.org/wiki/Parser_testing -# At present these assume that $wgUseTidy is false and may break -# if it is enabled. - !! test Blank input !! input @@ -89,7 +86,14 @@ sed abit. :and a colon !! result -

Lorem ipsum dolor sed abit. sed nullum. :and a colon

+

Lorem ipsum dolor + +sed abit. + sed nullum. + +:and a colon + +

!! end !! test @@ -129,27 +133,27 @@ comment test 1 !! end !! test -!! disabled comment test 2 !! input asdf jkl !! result -

asdf jkl +

asdf +jkl

!! end !! test comment test 3 -!! disabled !! input asdf jkl !! result -

asdf jkl +

asdf +jkl

!! end @@ -230,16 +234,25 @@ Quotes !! input Normal text. '''Bold text.''' Normal text. ''Italic text.'' -'''Bold text.. - -..spanning two paragraphs (should not work).''' - Normal text. '''''Bold italic text.''''' Normal text. +!!result +

Normal text. Bold text. Normal text. Italic text. +

Normal text. Bold italic text. Normal text. +

+!! end + +!! test +Unclosed and unmatched quotes +!! input '''''Bold italic text '''with bold deactivated''' in between.''''' '''''Bold italic text ''with italic deactivated'' in between.''''' +'''Bold text.. + +..spanning two paragraphs (should not work).''' + '''Bold tag left open ''Italic tag left open @@ -251,12 +264,10 @@ Normal text. ''Tom'''s car is bigger than ''Susan'''s. !! result -

Normal text. Bold text. Normal text. Italic text. +

Bold italic text with bold deactivated in between. +

Bold italic text with italic deactivated in between.

Bold text..

..spanning two paragraphs (should not work). -

Normal text. Bold italic text. Normal text. -

Bold italic text with bold deactivated in between. -

Bold italic text with italic deactivated in between.

Bold tag left open

Italic tag left open

Normal text. @@ -272,15 +283,18 @@ Normal text. Internal links !! input Plain link, capitalized: [[Main Page]] + +Plain link, uncapitalized: [[main Page]] !! result -

Plain link, capitalized: Main Page +

Plain link, capitalized: Main Page +

Plain link, uncapitalized: main Page +

!! end !! test Internal links 2 !! disabled !!input -Plain link, uncapitalized: [[main Page]] Piped link: [[Main Page|The Main Page]] @@ -306,7 +320,6 @@ Plain link to URL: [[http://www.example.org]] Piped link to URL: [[http://www.example.org|an example URL]] !! result -

Plain link, uncapitalized: main Page

Piped link: The Main Page

Broken link: Zigzagzogzagzig

Link with prefix: xxxmain Page, xxxMain Page, Xxx