From 2319609bd6c4e2d613961f010260abc7bea80020 Mon Sep 17 00:00:00 2001
From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?=
Date: Tue, 3 May 2005 07:35:27 +0000
Subject: [PATCH] * Added a test for a link with multiple pipes * Small fixes
---
maintenance/parserTests.txt | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt
index 936b9b3a71..c249a5f7fc 100644
--- a/maintenance/parserTests.txt
+++ b/maintenance/parserTests.txt
@@ -370,9 +370,9 @@ Specified text: [http://example.com link]
!! 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
+
Linktrails should not work for external links: links
!! end
@@ -677,7 +677,8 @@ A table with no data.
!! result
!! end
-# A table with nothing but a caption is invalid XHTML
+# A table with nothing but a caption is invalid XHTML, we might want to render
+# this as caption
!! test
A table with nothing but a caption
!! input
@@ -784,7 +785,7 @@ Table rowspan
Cell 3, row 1
|
-bg Cell 1, row 2
+ | Cell 1, row 2
| Cell 3, row 2
|
@@ -835,7 +836,6 @@ Invalid attributes in table cell (bug 1830)
!! end
-
###
### Internal links
###
@@ -911,6 +911,15 @@ Piped link with 3 brackets
!! end
+!! test
+Link with multiple pipes
+!! input
+[[Main Page|The|Main|Page]]
+!! result
+The|Main|Page
+
+!! end
+
!! test
Link to namespaces
!! input
--
2.20.1