From d1aaba0a64104927d1225e9906274b4fab67e221 Mon Sep 17 00:00:00 2001
From: Wil Mahan
Date: Fri, 1 Oct 2004 21:28:07 +0000
Subject: [PATCH] Add tests for the just-fixed bug 553, and broken cases
regarding image captions pointed out by IMSoP.
---
maintenance/parserTests.txt | 55 +++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt
index abe4107be6..626ca4ba95 100644
--- a/maintenance/parserTests.txt
+++ b/maintenance/parserTests.txt
@@ -1017,6 +1017,35 @@ Template parameter
!! end
+!! article
+Template:paramtestnum
+!! text
+[[{{{1}}}|{{{2}}}]]
+!! endarticle
+
+!! test
+Template unnamed parameter
+!! input
+{{paramtestnum|Main Page|the main page}}
+!! result
+the main page
+
+!! end
+
+!! test
+BUG 553: link with two variables in a piped link
+!! input
+{|
+|[[{{{1}}}|{{{2}}}]]
+|}
+!! result
+
+
+!! end
+
!! test
Magic variable as template parameter
!! input
@@ -1317,6 +1346,32 @@ Link to image page
!! end
+!! test
+Image caption with a free URL
+!! input
+[[Image:foo|http://example.com]]
+!! result
+http://example.com
+
+!! end
+
+!! test
+Thumbnail image caption with a free URL
+!! input
+[[Image:foo|thumb|http://example.com]]
+!! result
+
+!! end
+
+!! test
+Image caption with a link
+!! input
+[[Image:foo|text with a [[link]] in it]]
+!! result
+
+
+!! end
+
###
### Subpages
###
--
2.20.1