From cd9ad736027025a784499807668da50865ec18eb Mon Sep 17 00:00:00 2001
From: "C. Scott Ananian" foo|bar foo|bar
+<div>
+
+
-
+
-!! end
-
-!! test
-Unclosed formatting tags that straddle lists are closed and reopened
-(Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
-!! options
-parsoid
-!! input
-# a
-# b
-!! result
-
-!! end
-
-!!test
-List embedded in a non-block tag
-(Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
-!! options
-parsoid
-!!input
-
-* foo
-
-!!result
-
-
- a
- b
-
-
-
-
-!!end
-
!! test
List items are not parsed correctly following a block (bug 785)
!! input
@@ -5391,6 +5329,77 @@ parsoid
!! end
+# ------------------------------------------------------------------------
+# The next set of tests are about Parsoid's ability to handle badly nested
+# tags (parse, minimize scope of fixup, and roundtrip back)
+# ------------------------------------------------------------------------
+
+!! test
+Unbalanced closing block tags break a list
+(Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
+!! options
+parsoid
+!! input
+
+!! end
+
+!! test
+Unclosed formatting tags that straddle lists are closed and reopened
+(Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
+!! options
+parsoid
+!! input
+# a
+# b
+!! result
+
+!! end
+
+!!test
+List embedded in a non-block tag
+(Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
+!! options
+parsoid
+!!input
+
+* foo
+
+!!result
+
+
+ a
+ b
+
+
+
+
+!!end
###
### Magic Words
@@ -8789,6 +8798,17 @@ parsoid
xy
+!! end + !! test Parsoid: Serialize link to file page with colon escape !! options @@ -14805,9 +14825,10 @@ parsoid[1] baz</ref>
+[1] -=a=
=a=
@@ -15148,8 +15169,8 @@ Headings: 6c. Heading chars in SOL context (leading newline break) !! options parsoid !! input -a =b=
@@ -15162,7 +15183,7 @@ parsoid !! input=a=
=a=
@@ -15192,9 +15213,9 @@ parsoid=html2wt !! test Lists: 0. Outside nests !! input -*foo
#foo
@@ -15339,8 +15360,8 @@ parsoid
!! test
Lists: 7. Escape bullets in a multi-line context
!! input
-
a
*b
@@ -15598,7 +15619,7 @@ Links 1. Quote marks in link text
!! options
parsoid
!! input
-[[Foo|
a
a
@@ -16248,6 +16269,22 @@ parsoid=html2wt !! end +!! test +Parsoid: Serialize positional parameters with = in them as named parameter +!! options +parsoid=html2wt +!! input +{{echo|1 = f=oo}} +!! result +foo
+!! end + +# ----------------------------------------------------------------- +# End of section for Parsoid-only html2wt tests for serialization +# of new content +# ----------------------------------------------------------------- TODO: more images -- 2.20.1