From: Subramanya Sastry Date: Fri, 21 Sep 2012 17:22:30 +0000 (-0500) Subject: P-wrapping tests to spec. existing behavior to assist Parsoid. X-Git-Tag: 1.31.0-rc.0~22319 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=ab2b4eeae89f9a677ebe762219d2460d06a09c41;p=lhc%2Fweb%2Fwiklou.git P-wrapping tests to spec. existing behavior to assist Parsoid. * Block tags on a line change paragraph wrapping behavior for that line and previous lines. Added tests that captures how the PHP parser currently deals with it so that Parsoid can emulate this correctly. Change-Id: I0bcddd2a6d64502d80f4a8155bcd1425bd5db7be --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index aa084cc271..43d42715c3 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -510,7 +510,7 @@ Comment test 1 !! end !! test -Comment test 2 +Comment test 2a !! input asdf @@ -521,6 +521,19 @@ jkl

!! end +!! test +Comment test 2b +!! input +asdf + + +jkl +!! result +

asdf +

jkl +

+!! end + !! test Comment test 3 !! input @@ -633,6 +646,74 @@ b

!! end +!! test +Comment on its own line post-expand with non-significant whitespace +!! input +a + {{blank}} +b +!! result +

a +

b +

+!! end + +### +### paragraph wraping tests +### +!! test +No block tags +!! input +a + +b +!! result +

a +

b +

+!! end +!! test +Block tag on one line +!! input +a
foo
+ +b +!! result +a
foo
+

b +

+!! end + +!! test +Block tag on both lines +!! input +a
foo
+ +b
foo
+!! result +a
foo
+b
foo
+ +!! end + +!! test +Multiple lines without block tags +!! input +
foo
a +b +c +d e +x
foo
z +!! result +
foo
a +

b +c +d e +

+x
foo
z + +!! end + ### ### Preformatted text ###