mediawiki-extensions-Discus.../tests/cases/appendSignature.json
Bartosz Dziewoński d223626585 Add signature on separate line if wikitext comment ends with a list
Bug: T263217
Change-Id: Idd15a9add798368493ae7af5270f972895470de9
2022-08-06 16:08:13 +02:00

28 lines
1.7 KiB
JSON

[
{
"msg": "Simple message",
"html": "<p>Foo bar</p>",
"expected": "<p>Foo bar<span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot; ~~~~&quot;]}\"></span></p>"
},
{
"msg": "Simple message (from wikitext mode)",
"html": "<p><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot;Foo bar&quot;]}\"></span></p>",
"expected": "<p><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot;Foo bar&quot;]}\"></span><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot; ~~~~&quot;]}\"></span></p>"
},
{
"msg": "List",
"html": "<p>Foo bar</p><ul><li>A</li><li>B</li></ul>",
"expected": "<p>Foo bar</p><ul><li>A</li><li>B</li></ul><p><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot;~~~~&quot;]}\"></span></p>"
},
{
"msg": "List (from wikitext mode)",
"html": "<p><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot;Foo bar&quot;]}\"></span></p><p><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot;*A&quot;]}\"></span></p><p><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot;*B&quot;]}\"></span></p>",
"expected": "<p><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot;Foo bar&quot;]}\"></span></p><p><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot;*A&quot;]}\"></span></p><p><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot;*B&quot;]}\"></span></p><p><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot;~~~~&quot;]}\"></span></p>"
},
{
"msg": "Empty trailing paragraph",
"html": "<p>Foo bar</p><p></p>",
"expected": "<p>Foo bar</p><p><span typeof=\"mw:Transclusion\" data-mw=\"{&quot;parts&quot;:[&quot;~~~~&quot;]}\"></span></p>"
}
]