From 6a2f191287b69da5edd8a9bdf3c34805ffe06bca Mon Sep 17 00:00:00 2001
From: Gabriel Wicke
Date: Thu, 29 Nov 2012 09:18:36 -0800
Subject: [PATCH] Test handling of templates with invalid template target
Those templates are not expanded, and their contents are treated regular
wikitext.
Change-Id: I3cbc0c8bed8d44435b83c2523f26db09b27215fa
---
tests/parser/parserTests.txt | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
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
--
2.20.1