From 7be2c091877ef92662680200506c150482ca1e31 Mon Sep 17 00:00:00 2001
From: Subramanya Sastry
Date: Fri, 22 Feb 2013 10:12:52 -0600
Subject: [PATCH] Additional tests to catch future Parsoid regressions.
Change-Id: I1fd9bb201983769d19c1b8fd5a5422f89258722c
---
tests/parser/parserTests.txt | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
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
+
+
+!!end
!! test
Bug 3090: External links other than http: in image captions
--
2.20.1