mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-17 13:12:26 +00:00
4397bda8cb
Change-Id: I63d868a47daebee180c229b424311d10b80d2e89
33 lines
692 B
JSON
33 lines
692 B
JSON
[
|
|
{
|
|
"name": "empty",
|
|
"html": "<dl><dd></dd></dl>",
|
|
"expected": ""
|
|
},
|
|
{
|
|
"name": "single item",
|
|
"html": "<dl><dd>Foo</dd></dl>",
|
|
"expected": "<p>Foo</p>"
|
|
},
|
|
{
|
|
"name": "single block item",
|
|
"html": "<dl><dd><pre>Foo</pre></dd></dl>",
|
|
"expected": "<pre>Foo</pre>"
|
|
},
|
|
{
|
|
"name": "mixed inline and block",
|
|
"html": "<dl><dd>Foo <pre>Bar</pre> Baz</dd></dl>",
|
|
"expected": "<p>Foo </p><pre>Bar</pre><p> Baz</p>"
|
|
},
|
|
{
|
|
"name": "multiple items",
|
|
"html": "<dl><dd>Foo</dd><dd>Bar</dd></dl>",
|
|
"expected": "<p>Foo</p><p>Bar</p>"
|
|
},
|
|
{
|
|
"name": "nested list",
|
|
"html": "<dl><dd>Foo<dl><dd>Bar</dd></dl></dd></dl>",
|
|
"expected": "<p>Foo</p><dl><dd>Bar</dd></dl>"
|
|
}
|
|
]
|