Debian Codegraph @

vendor/wikimedia/parsoid/tests/parser/definitionLists-standalone-knownFailures.json

raw
1 {
2 "Definition Lists: Hacky use to indent tables": {
3 "html2wt": ":: {|\n|foo\n|bar\n|}\n\nthis text\nshould be left alone\n"
4 },
5 "Definition Lists: Hacky use to indent tables (WS-insensitive)": {
6 "wt2wt": ":{|\n|a\n|}",
7 "html2wt": ": {|\n|a\n|}\n",
8 "selser [[[[4,3]]]]": ":{|<!--nvkt7k-->\n|} ",
9 "selser [[[[0,4]]]]": ":{|\n<!--1cibqk6-->|} ",
10 "selser [[1]]": ":{|\n|a\n|} ",
11 "selser [[[[0,[[[4]],0]]]]]": ":{|\n|9li6zw\n|} ",
12 "selser [1]": ":{|\n|a\n|} ",
13 "selser [[[[4,[4,2]]]]]": ":{|<!--10ihbx0--><!--k9nvuw--><!--15hevs9-->\n|} ",
14 "selser [[[[3,[0,2]]]]]": ":{|\n|a<!--12bq36y-->\n|} ",
15 "selser [2]": "h175d3\n:{|\n|a\n|} ",
16 "selser [[[[4,[[[2]],3]]]]]": ":{|<!--1bb9eok-->\n|j0vzm1a\n|} ",
17 "selser [[[[3,0]]]]": ":{|\n|a\n|} ",
18 "selser [[[[3,[[3],0]]]]]": ":{|\n|} ",
19 "selser [[2]]": ": 1tk1yz2\n:{|\n|a\n|} ",
20 "selser [[[[0,2]]]]": ":{|\n<!--hzzj8m-->|a\n|} ",
21 "selser [[[[0,1]]]]": ":{|\n|a\n|} "
22 },
23 "Definition Lists: Hacky use to indent tables (with content following table)": {
24 "html2wt": ": {|\n|foo\n|bar\n|} <!--c1--> this text should be part of the dl"
25 },
26 "Definition Lists: Hacky use to indent tables, with comments (T65979)": {
27 "html2wt": "<!-- foo -->\n:: {|\n|foo\n|bar\n|}<!-- bar -->\n\nthis text\nshould be left alone"
28 },
29 "Definition Lists: Indentation: Missing 1st level": {
30 "html2wt": ":: i2\n::: i3\n"
31 },
32 "Definition Lists: Indentation: Multi-level indent": {
33 "html2wt": "::: i3\n"
34 },
35 "Definition Lists: Indentation: Regular": {
36 "html2wt": ": i1\n:: i2\n::: i3\n"
37 },
38 "Definition Lists: Mixed Lists: Test 1": {
39 "html2wt": "\n:;* foo\n::* bar\n:; baz\n"
40 },
41 "Definition Lists: Mixed Lists: Test 11": {
42 "html2wt": "; a\n:* b\n"
43 },
44 "Definition Lists: Mixed Lists: Test 13": {
45 "wt2html": "<ul data-parsoid='{\"dsr\":[0,32,0,0]}'><li data-parsoid='{\"dsr\":[0,32,1,0]}'><ol data-parsoid='{\"dsr\":[1,32,0,0]}'><li data-parsoid='{\"dsr\":[1,32,1,0]}'><ul data-parsoid='{\"dsr\":[2,32,0,0]}'><li data-parsoid='{\"dsr\":[2,32,1,0]}'><ol data-parsoid='{\"dsr\":[3,32,0,0]}'><li data-parsoid='{\"dsr\":[3,32,1,0]}'><dl data-parsoid='{\"dsr\":[4,32,0,0]}'><dt data-parsoid='{\"dsr\":[4,18,1,0]}'><ul data-parsoid='{\"dsr\":[5,17,0,0]}'><li data-parsoid='{\"dsr\":[5,17,1,0]}'><dl data-parsoid='{\"dsr\":[6,17,0,0]}'><dt data-parsoid='{\"dsr\":[6,17,1,0]}'><dl data-parsoid='{\"dsr\":[7,17,0,0]}'><dt data-parsoid='{\"dsr\":[7,12,1,0,0,1]}'>foo</dt><dd data-parsoid='{\"stx\":\"row\",\"dsr\":[12,17,1,0,1,0]}'>bar</dd></dl></dt></dl></li></ul>\n</dt><dt data-parsoid='{\"dsr\":[18,27,5,0,0,1]}'>boo</dt><dd data-parsoid='{\"stx\":\"row\",\"dsr\":[27,32,1,0,1,0]}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>"
46 },
47 "Definition Lists: Mixed Lists: Test 2": {
48 "html2wt": "*: d1\n*: d2\n"
49 },
50 "Definition Lists: Mixed Lists: Test 3": {
51 "html2wt": "*::: d1\n*::: d2\n"
52 },
53 "Definition Lists: Mixed Lists: Test 5": {
54 "html2wt": "*: d1\n*:: d2\n"
55 },
56 "Definition Lists: Mixed Lists: Test 6": {
57 "html2wt": "#*: d1\n#*::: d3\n"
58 },
59 "Definition Lists: Mixed Lists: Test 7": {
60 "html2wt": ":* d1\n:* d2\n"
61 },
62 "Definition Lists: Mixed Lists: Test 8": {
63 "html2wt": ":* d1\n::* d2\n",
64 "selser [[[1,2,1]]]": ":*d1 zmr5na\n::*d2",
65 "selser [[[1,4,[2]]]]": ":*d1 mzvb16\n:: 101qtoa\n::*d2",
66 "selser [[[1,2,[[[[4]]]]]]]": ":*d1 1p1a6zd\n::*1pbzx7v\n",
67 "selser [[[[3],2,[1]]]]": ": 17llcws\n::*d2",
68 "selser [[[3,0,[4]]]]": ":\n:: 14p3rxo\n",
69 "selser [[[[[2]],4,2]]]": ":*1j4b9ocd1 7prueald6si3\n::*d2"
70 },
71 "Definition Lists: Nesting: Multi-level (Parsoid only)": {
72 "html2html": "\n<dl data-parsoid='{\"dsr\":[1,82,0,0]}'><dt data-parsoid='{\"dsr\":[1,6,1,0,1,1]}'>t1</dt>\n<dd data-parsoid='{\"dsr\":[7,17,1,0,1,6]}'>d1</dd>\n<dt data-parsoid='{\"dsr\":[18,82,1,0]}'><dl data-parsoid='{\"dsr\":[19,82,0,0]}'><dt data-parsoid='{\"dsr\":[19,24,1,0,1,1]}'>t2</dt>\n<dd data-parsoid='{\"dsr\":[25,45,2,0,1,14]}'>:d2</dd>\n<dt data-parsoid='{\"dsr\":[46,82,2,0]}'><dl data-parsoid='{\"dsr\":[48,82,0,0]}'><dt data-parsoid='{\"dsr\":[48,53,1,0,1,1]}'>t3</dt>\n<dd data-parsoid='{\"dsr\":[54,82,3,0,0,20]}'><span typeof=\"mw:DisplaySpace\" data-parsoid='{\"dsr\":[57,58,0,0]}'> </span>::d3</dd></dl></dt></dl></dt></dl>\n",
73 "html2wt": "\n; t1 \n: d1 \n;; t2 \n;: :d2 \n;;; t3 \n;;: ::d3 \n"
74 },
75 "Definition Lists: Nesting: Test 2": {
76 "html2wt": "; t1\n:: d2\n"
77 },
78 "Definition Lists: Nesting: Test 3": {
79 "html2wt": ":; t1\n:::: d2\n"
80 },
81 "Definition Lists: Nesting: Test 4": {
82 "html2wt": "::; t3\n::: d3\n"
83 },
84 "Definition Lists: No nesting: Multiple dd's": {
85 "html2wt": "; x\n: a\n: b"
86 },
87 "Definition Lists: colons and tables 1": {
88 "html2wt": ": {|\n|x\n|}\n: {|\n|y\n|}\n"
89 },
90 "Definition Lists: colons occurring in tags": {
91 "html2wt": "; a:b\n; '''a:b'''\n; <i>a:b</i>\n; <span>a:b</span>\n; <div>a:b</div>\n; <div>a\n: b</div>\n; {{1x|a:b}}\n; {{1x|''a:b''}}\n;;; ''a:b''\n"
92 },
93 "Definition list for indentation only": {
94 "html2wt": ": Indented text"
95 },
96 "Definition list with bracketed URL link": {
97 "html2wt": "; [http://www.example.com/ Example]\n: Something about it"
98 },
99 "Definition list with empty definition and following paragraph": {
100 "html2wt": "; term\n:\n\nParagraph text\n"
101 },
102 "Definition list with no space": {
103 "html2wt": "; name\n: Definition"
104 },
105 "Definition list with wikilink containing colon": {
106 "html2wt": "; [[Help:FAQ]]:The least-read page on Wikipedia"
107 },
108 "Definition lists: colon in HTML attribute": {
109 "html2html": "<dl data-parsoid='{\"dsr\":[0,12,0,0]}'><dt data-parsoid='{\"dsr\":[0,12,1,0,1,0]}'><b data-parsoid='{\"dsr\":[2,12,3,3]}'>bold</b></dt></dl>",
110 "html2wt": "; '''bold'''"
111 },
112 "Definition lists: ignore colons inside tags": {
113 "html2wt": "; one '''two : tag ''fun:'':'''\n: def"
114 },
115 "Malformed definition list with colon": {
116 "html2wt": "; news:alt.wikipedia.rox -- don't crash or enter an infinite loop"
117 },
118 "Nested definition lists using html syntax": {
119 "html2wt": "; x\n: a\n: b"
120 },
121 "T13748: Literal closing tags": {
122 "html2wt": "\n; test 1\n: test test test test test\n; test 2\n: test test test test test\n",
123 "selser [[0,4,3,[2],0,[3],3,0,0]]": "<dl>\n<dd>1k0w39v</dd><dd>lotdkwtest test test test test</dd>\n<dt></dt>\n<dd>test test test test test</dd>\n</dl>"
124 },
125 "Table / list interaction: indented table with lists in table contents": {
126 "html2wt": ": {|\n|a\n\n* b\n|-\n|c\n\n* d\n|}\n",
127 "selser [[[2]]]": ":1gdq7yk {| |- |a *b |- |c *d |}"
128 },
129 "Table / list interaction: lists nested in tables nested in indented lists": {
130 "html2wt": ": {|\n|\n: a\n: b\n|\n* c\n* d\n|}\n\n* e\n* f"
131 }
132 }