From: Subramanya Sastry Date: Fri, 22 Feb 2013 16:12:52 +0000 (-0600) Subject: Additional tests to catch future Parsoid regressions. X-Git-Tag: 1.31.0-rc.0~20578^2 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=7be2c091877ef92662680200506c150482ca1e31;p=lhc%2Fweb%2Fwiklou.git Additional tests to catch future Parsoid regressions. Change-Id: I1fd9bb201983769d19c1b8fd5a5422f89258722c --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index df8b9e2b9b..d63fb3b18c 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -2648,6 +2648,21 @@ External link containing double-single-quotes with no space separating the url f

!! end +!!test +Text in square brackets that is not a link should parse as text +!!input +[foo] +[{{echo|foo}}] +[url={{echo|foo}}] +[url=http://example.com] +!!result +

[foo] +[foo] +[url=foo] +[url=http://example.com] +

+!!end + !! test URL-encoding in URL functions (single parameter) !! input @@ -7050,6 +7065,15 @@ Image caption containing a newline

!!end +!!test +Parsoid: Image caption containing leading space +(The leading space should not trigger nowiki escaping in wt2wt mode) +!! input +[[Image:Foobar.jpg|thumb| bar]] +!! result +
bar
+ +!!end !! test Bug 3090: External links other than http: in image captions