From: Ævar Arnfjörð Bjarmason
Date: Tue, 3 May 2005 07:35:27 +0000 (+0000)
Subject: * Added a test for a link with multiple pipes
X-Git-Tag: 1.5.0alpha1~7
X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=2319609bd6c4e2d613961f010260abc7bea80020;p=lhc%2Fweb%2Fwiklou.git
* Added a test for a link with multiple pipes
* Small fixes
---
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