Two new parser tests related to bug 6200
authorAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 29 Jul 2010 19:09:52 +0000 (19:09 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 29 Jul 2010 19:09:52 +0000 (19:09 +0000)
A patch posted there caused two parser tests for <center> to fail, but
none for <blockquote>, despite making a similar change to both elements.
I've added similar tests for <blockquote> so that they'll fail if a
similar patch is attempted that changes only <blockquote> behavior and
not <center> too.

maintenance/parserTests.txt

index bd08edd..12a2cd1 100644 (file)
@@ -370,6 +370,21 @@ Regression with preformatted in <center>
 
 !! end
 
+# Expected output in the following test is not really expected (there should be
+# <pre> in the output) -- it's only testing for well-formedness.
+!! test
+Bug 6200: Preformatted in <blockquote>
+!! input
+<blockquote>
+ Blah
+</blockquote>
+!! result
+<blockquote>
+ Blah
+</blockquote>
+
+!! end
+
 !! test
 <pre> with attributes (bug 3202)
 !! input
@@ -7044,6 +7059,29 @@ __NOEDITSECTION__
 </p>
 !! end
 
+# Expected output in the following test is not necessarily expected (there
+# should probably be <p> tags inside the <blockquote> in the output) -- it's
+# only testing for well-formedness.
+!! test
+Bug 6200: blockquotes and paragraph formatting
+!! input
+<blockquote>
+foo
+</blockquote>
+
+bar
+
+ baz
+!! result
+<blockquote>
+foo
+</blockquote>
+<p>bar
+</p>
+<pre>baz
+</pre>
+!! end
+
 !! test
 Bug 8293: Use of center tag ruins paragraph formatting
 !! input