From: Roan Kattouw
Date: Tue, 12 Jul 2011 20:56:56 +0000 (+0000)
Subject: Parser tests for protocol-relative URLs, for r91663 and r92005
X-Git-Tag: 1.31.0-rc.0~28895
X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=c0c93b54a1b836f4276af93c5387ae575c8f4dc9;p=lhc%2Fweb%2Fwiklou.git
Parser tests for protocol-relative URLs, for r91663 and r92005
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index 0527bb95aa..c59e4db102 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -714,6 +714,33 @@ second]
!!end
+!! test
+External links: protocol-relative URL in brackets
+!! input
+[//example.com/ Test]
+!! result
+Test
+
+!! end
+
+!! test
+External links: protocol-relative URL in brackets without text
+!! input
+[//example.com]
+!! result
+[1]
+
+!! end
+
+!! test
+External links: protocol-relative URL in free text is left alone
+!! input
+//example.com/Foo
+!! result
+//example.com/Foo
+
+!!end
+
!! test
External image
!! input