From e9d6981d126e05a75b1468a7a585eea7c494d917 Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Mon, 25 Jun 2012 23:08:03 -0500 Subject: [PATCH] Added several additional definition list tests. * Some of these tests have been marked disabled so that the PHP parser doesn't test against them. These tests are marked "(Parsoid only)". The HTML output for these tests has been set to match Parsoid's output which differs from what the PHP parser outputs. Change-Id: Ie19eb000bb74c6ec491f96cb7bf1460648ace030 --- tests/parser/parserTests.txt | 322 +++++++++++++++++++++++++++++++++++ 1 file changed, 322 insertions(+) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 7633118172..b87a533a38 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -9481,6 +9481,328 @@ abc

!! end +!! test +DL Tests: No nesting: Multiple dd's +!! input +;x +:a +:b +!! result +
x +
a +
b +
+ +!! end + +!! test +DL Tests: Indentation: Regular +!! input +:i1 +::i2 +:::i3 +!! result +
i1 +
i2 +
i3 +
+
+
+ +!! end + +!! test +DL Tests: Indentation: Missing 1st level +!! input +::i2 +:::i3 +!! result +
i2 +
i3 +
+
+
+ +!! end + +!! test +DL Tests: Indentation: Multi-level indent +!! input +:::i3 +!! result +
i3 +
+
+
+ +!! end + +!! test +DL Tests: Nesting: Multi-level (Parsoid only) +!! options +disabled +!! input +;t1 :d1 +;;t2 ::d2 +;;;t3 :::d3 +!! result +
+
t1
+
d1
+
+
+
t2
+
:d2
+
+
+
t3
+
::d3
+ + +!! end + + +!! test +DL Tests: Nesting: Test 2 (Parsoid only) +!! options +disabled +!! input +;t1 +::d2 +!! result +
+
t1
+
+
+
d2
+ +!! end + + +!! test +DL Tests: Nesting: Test 3 +!! input +::;t3 +:::d3 +!! result +
t3 +
d3 +
+
+
+ +!! end + + +!! test +DL Tests: Nesting: Test 4 (Parsoid only) +!! options +disabled +!! input +:;t1 +::::d2 +!! result +
+
+
+
t1
+
+
+
+
+
d2
+ +!! end + + +!! test +DL Tests: Mixed Lists: Test 1 +!! input +:;* foo +::* bar +:; baz +!! result +
  • foo +
  • bar +
+
+
baz +
+
+ +!! end + + +!! test +DL Tests: Mixed Lists: Test 2 +!! input +*: d1 +*: d2 +!! result + + +!! end + + +!! test +DL Tests: Mixed Lists: Test 3 +!! input +*::: d1 +*::: d2 +!! result + + +!! end + + +!! test +DL Tests: Mixed Lists: Test 4 +!! input +*;d1 :d2 +*;d3 :d4 +!! result + + +!! end + + +!! test +DL Tests: Mixed Lists: Test 5 +!! input +*:d1 +*:: d2 +!! result + + +!! end + + +!! test +DL Tests: Mixed Lists: Test 6 +!! input +#*:d1 +#*::: d3 +!! result +
    • d1 +
      d3 +
      +
      +
      +
    +
+ +!! end + + +!! test +DL Tests: Mixed Lists: Test 7 +!! input +:* d1 +:* d2 +!! result +
  • d1 +
  • d2 +
+
+ +!! end + + +!! test +DL Tests: Mixed Lists: Test 8 +!! input +:* d1 +::* d2 +!! result +
  • d1 +
+
  • d2 +
+
+
+ +!! end + + +!! test +DL Tests: Mixed Lists: Test 9 +!! input +*;foo :bar +!! result + + +!! end + + +!! test +DL Tests: Mixed Lists: Test 10 +!! input +*#;foo :bar +!! result + + +!! end + + +!! test +DL Tests: Mixed Lists: Test 11 +!! input +*#*#;*;;foo :bar +*#*#;boo :baz +!! result + + + + +!! end + + +!! test +DL Tests: Weird Ones: Test 1 +!! input +*#;*::;; foo : bar (who uses this?) +!! result + + + + + +!! end + + TODO: more images more tables -- 2.20.1