From 5744609a9b4221cbecca7c3b7b108ab8ce465f24 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 7 Nov 2012 15:17:22 -0800 Subject: [PATCH] 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 --- tests/parser/parserTests.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 -- 2.20.1