mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-27 23:33:25 +00:00
d223626585
Bug: T263217 Change-Id: Idd15a9add798368493ae7af5270f972895470de9
28 lines
1.7 KiB
JSON
28 lines
1.7 KiB
JSON
[
|
|
{
|
|
"msg": "Simple message",
|
|
"html": "<p>Foo bar</p>",
|
|
"expected": "<p>Foo bar<span typeof=\"mw:Transclusion\" data-mw=\"{"parts":[" ~~~~"]}\"></span></p>"
|
|
},
|
|
{
|
|
"msg": "Simple message (from wikitext mode)",
|
|
"html": "<p><span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["Foo bar"]}\"></span></p>",
|
|
"expected": "<p><span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["Foo bar"]}\"></span><span typeof=\"mw:Transclusion\" data-mw=\"{"parts":[" ~~~~"]}\"></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=\"{"parts":["~~~~"]}\"></span></p>"
|
|
},
|
|
{
|
|
"msg": "List (from wikitext mode)",
|
|
"html": "<p><span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["Foo bar"]}\"></span></p><p><span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["*A"]}\"></span></p><p><span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["*B"]}\"></span></p>",
|
|
"expected": "<p><span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["Foo bar"]}\"></span></p><p><span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["*A"]}\"></span></p><p><span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["*B"]}\"></span></p><p><span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["~~~~"]}\"></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=\"{"parts":["~~~~"]}\"></span></p>"
|
|
}
|
|
]
|