From c0c93b54a1b836f4276af93c5387ae575c8f4dc9 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 12 Jul 2011 20:56:56 +0000 Subject: [PATCH] Parser tests for protocol-relative URLs, for r91663 and r92005 --- tests/parser/parserTests.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) 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 -- 2.20.1