From: Gabriel Wicke Date: Wed, 7 Nov 2012 23:17:22 +0000 (-0800) Subject: Add a test for an uncovered bullet in a deeply nested list X-Git-Tag: 1.31.0-rc.0~21714^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=5744609a9b4221cbecca7c3b7b108ab8ce465f24;p=lhc%2Fweb%2Fwiklou.git Add a test for an uncovered bullet in a deeply nested list Also document testing issues in this area in a comment. Change-Id: I2f753764e3aa2f9d4bbd146f48b43021a5b07c63 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 2fa8a50486..8e7f44eeca 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -10331,6 +10331,29 @@ Bug 529: Uncovered bullet !! end +# Plain MediaWiki does not remove empty lists, but tidy actually does. +# Templates in Wikipedia rely on this behavior, as tidy has always been +# enabled there. These tests are normally run *without* tidy, so specify the +# full output here. +# To test realistic parsing behavior, apply a tidy-like transformation to both +# the expected output and your parser's output. +!! test +Bug 529: Uncovered bullet leaving empty list, normally removed by tidy +!! input +******* Foo {{bullet}} +!! result + + +!! end + !! test Bug 529: Uncovered table already at line-start !! input