From 376d54f4c58ab6d51860f58d315ae46eca5f16c7 Mon Sep 17 00:00:00 2001 From: Adam Wight Date: Thu, 12 Apr 2012 08:50:29 -0700 Subject: [PATCH] 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 --- tests/parser/parserTests.txt | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) 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
 ###
-- 
2.20.1