mediawiki-extensions-Discus.../tests/cases/unwrap.json
Ed Sanders c5d1029b25 Move /cases and /data up to /tests
Theses are no longer QUnit specific.

Change-Id: I5f3cca1ff686922e0cdaaedb80858f37df04799a
2020-05-18 21:47:17 +01:00

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>"
}
]