From: Adam Wight Date: Thu, 12 Apr 2012 15:50:29 +0000 (-0700) Subject: document how the parser handles list items coming from a template, X-Git-Tag: 1.31.0-rc.0~23921^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=376d54f4c58ab6d51860f58d315ae46eca5f16c7;p=lhc%2Fweb%2Fwiklou.git document how the parser handles list items coming from a template, especially the surprising start-of-line behavior. This test will be used to implement matching behavior in Parsoid. Change-Id: Ibfa13dfd2be2d62c285449cb090e2b112fe30f9b --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 7a67a8d3f4..1f0cf87c6a 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -59,6 +59,12 @@ MediaWiki:bad image list * [[File:Bad.jpg]] except [[Nasty page]] !!endarticle +!! article +Template:inner list +!! text +* item 1 +!! endarticle + ### ### Basic tests ### @@ -2147,6 +2153,36 @@ List items are not parsed correctly following a
 block (bug 785)
 
 !! end
 
+!! test
+List items from template
+!! input
+
+{{inner list}}
+* item 2
+
+* item 0
+{{inner list}}
+* item 2
+
+* item 0
+* notSOL{{inner list}}
+* item 2
+!! result
+
+
+
+
+!! end
+
 ###
 ### Magic Words
 ###