Add a test for paragraphs with extra newline spacing
authorGabriel Wicke <gwicke@wikimedia.org>
Fri, 3 Aug 2012 23:33:13 +0000 (16:33 -0700)
committerGabriel Wicke <gwicke@wikimedia.org>
Fri, 3 Aug 2012 23:33:13 +0000 (16:33 -0700)
This test simply documents the current PHP parser behavior, so that it remains
compatible while we are tweaking Parsoid.

Change-Id: I807efb93da6c69da124bcab5c7fbd531b4deaa2b

tests/parser/parserTests.txt

index dd205f6..48e1d7c 100644 (file)
@@ -84,6 +84,29 @@ This is a simple paragraph.
 </p>
 !! end
 
+!! test
+Paragraphs with extra newline spacing
+!! input
+foo
+
+bar
+
+
+baz
+
+
+
+booz
+!! result
+<p>foo
+</p><p>bar
+</p><p><br />
+baz
+</p><p><br />
+</p><p>booz
+</p>
+!! end
+
 !! test
 Simple list
 !! input