Parsoid-centric tests to RT-test comments-ws-pre interactions.
authorSubramanya Sastry <ssastry@wikimedia.org>
Wed, 3 Oct 2012 20:53:04 +0000 (15:53 -0500)
committerSubramanya Sastry <ssastry@wikimedia.org>
Wed, 3 Oct 2012 20:53:04 +0000 (15:53 -0500)
Change-Id: I2974d1451acbaeae4bce1aa890f0becea2dca32a

tests/parser/parserTests.txt

index f9c7f14..f555d4f 100644 (file)
@@ -968,6 +968,50 @@ bar
 </pre>
 !!end
 
+###
+### Parsoid-centric tests for testing RT edge cases
+### around comments and white-space inside pre blocks
+###
+
+!!test
+1a. Pre and Comments
+!!input
+ a
+<!--a-->
+c
+!!result
+<pre>a
+</pre>
+<p>c
+</p>
+!!end
+
+!!test
+1b. Pre and Comments
+!!input
+ a
+ <!--a-->
+c
+!!result
+<pre>a
+</pre>
+<p>c
+</p>
+!!end
+
+!!test
+1c. Pre and Comments
+!!input
+<!--a-->  a
+
+ <!--a--> a
+!!result
+<pre> a
+</pre>
+<pre> a
+</pre>
+!!end
+
 ###
 ### Definition lists
 ###