mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-16 20:58:28 +00:00
44f2209abf
Add unit tests for appendSignature(). Bug: T276612 Change-Id: Ic44c52f4d54492e092f9396c626380e2637b6f0f
18 lines
635 B
JSON
18 lines
635 B
JSON
[
|
|
{
|
|
"msg": "Simple message",
|
|
"html": "<p>Foo bar</p>",
|
|
"expected": "<p>Foo bar<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": "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>"
|
|
}
|
|
]
|