From: Subramanya Sastry Date: Tue, 26 Jun 2012 04:08:03 +0000 (-0500) Subject: Added several additional definition list tests. X-Git-Tag: 1.31.0-rc.0~23230^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=e9d6981d126e05a75b1468a7a585eea7c494d917;p=lhc%2Fweb%2Fwiklou.git 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 --- 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