From 5923105af1c5b8d14f7c9be46bfcd4e827bd9630 Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Wed, 6 Jun 2012 17:16:01 -0500 Subject: [PATCH] Added nested-list tests for covering additional cases for Parsoid. Change-Id: Ic0ea44a5d965bfd27b34a790f18ef29f2ac20d6a --- tests/parser/parserTests.txt | 79 ++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index f37529f507..7633118172 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -2159,6 +2159,85 @@ Mixed list !! end +!! test +Nested lists 1 +!! input +*foo +**bar +!! result + + +!! end + +!! test +Nested lists 2 +!! input +**foo +*bar +!! result + + +!! end + +!! test +Nested lists 3 (first element empty) +!! input +* +**bar +!! result + + +!! end + +!! test +Nested lists 4 (first element empty) +!! input +** +*bar +!! result + + +!! end + +!! test +Nested lists 5 (both elements empty) +!! input +** +* +!! result + + +!! end + +!! test +Nested lists 6 (both elements empty) +!! input +* +** +!! result + + +!! end + + !! test List items are not parsed correctly following a
 block (bug 785)
 !! input
-- 
2.20.1