From: Gabriel Wicke
Date: Thu, 29 Nov 2012 17:18:36 +0000 (-0800)
Subject: Test handling of templates with invalid template target
X-Git-Tag: 1.31.0-rc.0~21472
X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=6a2f191287b69da5edd8a9bdf3c34805ffe06bca;p=lhc%2Fweb%2Fwiklou.git
Test handling of templates with invalid template target
Those templates are not expanded, and their contents are treated regular
wikitext.
Change-Id: I3cbc0c8bed8d44435b83c2523f26db09b27215fa
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index 31c2ba6cfb..5af8b7a3f1 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -4407,6 +4407,24 @@ Nonexistent template
!! end
+!! test
+Template with invalid target containing tags
+!! input
+{{ab|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
+!! result
+{{ab|foo|a=b|a = b}}
+
+!! end
+
+!! test
+Template with invalid target containing unclosed tag
+!! input
+{{a|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
+!! result
+{{a|foo|a=b|a = b}}
+
+!! end
+
!! article
Template:test
!! text