Debian Codegraph @

extensions/DiscussionTools/tests/cases/unwrap.json

raw symbols SCIP
1 [
2 {
3 "name": "empty",
4 "html": "<dl><dd></dd></dl>",
5 "index": 0,
6 "expected": ""
7 },
8 {
9 "name": "single item",
10 "html": "<dl><dd>Foo</dd></dl>",
11 "index": 0,
12 "expected": "<p>Foo</p>"
13 },
14 {
15 "name": "with siblings",
16 "html": "<div>before</div><dl><dd>Foo</dd></dl><div>after</div>",
17 "index": 1,
18 "expected": "<div>before</div><p>Foo</p><div>after</div>"
19 },
20 {
21 "name": "templated list",
22 "html": "<dl typeof=\"mw:Transclusion\" about=\"#mwt1\"><dd>Foo</dd></dl>",
23 "index": 0,
24 "expected": "<dl typeof=\"mw:Transclusion\" about=\"#mwt1\"><dd>Foo</dd></dl>"
25 },
26 {
27 "name": "single block item",
28 "html": "<dl><dd><pre>Foo</pre></dd></dl>",
29 "index": 0,
30 "expected": "<pre>Foo</pre>"
31 },
32 {
33 "name": "mixed inline and block",
34 "html": "<dl><dd>Foo <pre>Bar</pre> Baz</dd></dl>",
35 "index": 0,
36 "expected": "<p>Foo </p><pre>Bar</pre><p> Baz</p>"
37 },
38 {
39 "name": "multiple items",
40 "html": "<dl><dd>Foo</dd><dd>Bar</dd></dl>",
41 "index": 0,
42 "expected": "<p>Foo</p><p>Bar</p>"
43 },
44 {
45 "name": "multiple items with whitespace",
46 "html": "<dl>\n<dd>Foo</dd>\n<dd>Bar</dd>\n</dl>",
47 "index": 0,
48 "expected": "\n<p>Foo</p>\n<p>Bar</p>\n"
49 },
50 {
51 "name": "nested list",
52 "html": "<dl><dd>Foo<dl><dd>Bar</dd></dl></dd></dl>",
53 "index": 0,
54 "expected": "<p>Foo</p><dl><dd>Bar</dd></dl>"
55 },
56 {
57 "name": "non-list element",
58 "html": "<div><span>Foo</span></div>",
59 "index": 0,
60 "expected": "<div><span>Foo</span></div>"
61 },
62 {
63 "name": "text node",
64 "html": "Foo",
65 "index": 0,
66 "expected": "Foo"
67 }
68 ]