Add test for comment-only line followed by a template transclusion
authorGabriel Wicke <gwicke@wikimedia.org>
Tue, 7 May 2013 00:09:59 +0000 (17:09 -0700)
committerGabriel Wicke <gwicke@wikimedia.org>
Tue, 7 May 2013 00:09:59 +0000 (17:09 -0700)
https://bugzilla.wikimedia.org/show_bug.cgi?id=48179

Change-Id: I4e41dcea94bbb1376ffa96d7381029b2cee85ec3

tests/parser/parserTests.txt

index a4e32ab..cb3a4ae 100644 (file)
@@ -6173,6 +6173,19 @@ bar <div>baz</div>
 
 !!end
 
+!!test
+Templates: P-wrapping: 1d. Template preceded by comment-only line
+!!options
+parsoid
+!!input
+<!-- foo -->
+{{echo|Bar}}
+!!result
+<!-- foo -->
+<p>Bar
+</p>
+!!end
+
 !!test
 Templates: Inline Text: 1. Multiple tmeplate uses
 !!input