Sync up with Parsoid tests.
authorC. Scott Ananian <cscott@cscott.net>
Tue, 9 Jul 2013 22:42:33 +0000 (18:42 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Tue, 9 Jul 2013 22:42:33 +0000 (18:42 -0400)
This now aligns with Parsoid commit 7533c2240496914f15b4f3b314742bde9c3ceca5.

Change-Id: Ia6743500aba297acfc6fe89a8db1079dfd6be3b6

tests/parser/parserTests.txt

index f873b4a..478b348 100644 (file)
@@ -4808,6 +4808,8 @@ parsoid
 
 !! test
 Broken br tag sanitization
+!! options
+php
 !! input
 </br>
 !! result
@@ -4815,6 +4817,17 @@ Broken br tag sanitization
 </p>
 !! end
 
+# TODO: Fix html2html mode (bug 51055)!
+!! test
+Parsoid: Broken br tag recognition
+!! options
+parsoid=wt2html
+!! input
+</br>
+!! result
+<p><br></p>
+!! end
+
 !! test
 Incorrecly removing closing slashes from correctly formed XHTML
 !! input
@@ -16145,6 +16158,32 @@ parsoid=html2wt
 </ul>
 !! end
 
+# This test case is fixed by domino 1.0.12.
+# Note that html2wt is considerably more difficult if we use <b> in
+# the test case, instead of <big>
+!! test
+Ensure that HTML adoption agency algorithm is properly implemented.
+!! options
+!! input
+<big>X<big>Y</big>Z</big>
+!! result
+<p><big>X<big>Y</big>Z</big>
+</p>
+!! end
+
+# The parsoid team believes the below behavior of the PHP parser to be
+# a bug.
+!! test
+Document PHP parser behavior for HTML adoption agency test case.
+!! options
+php
+!! input
+<em>X<em>Y</em>Z</em>
+!! result
+<p><em>X&lt;em&gt;Y</em>Z&lt;/em&gt;
+</p>
+!! end
+
 TODO:
 more images
 more tables