mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-18 11:02:57 +00:00
38 lines
1.2 KiB
JSON
38 lines
1.2 KiB
JSON
|
[
|
||
|
{
|
||
|
"msg": "Simple message",
|
||
|
"html": "<p>Foo bar</p>",
|
||
|
"expected": false
|
||
|
},
|
||
|
{
|
||
|
"msg": "Literal tildes",
|
||
|
"html": "<p>Foo ~~~~</p>",
|
||
|
"expected": false
|
||
|
},
|
||
|
{
|
||
|
"msg": "Signature node",
|
||
|
"html": "<p>Foo bar <span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["~~~~"]}\"></span></p>",
|
||
|
"expected": true
|
||
|
},
|
||
|
{
|
||
|
"msg": "Signature node with trailing whitespace",
|
||
|
"html": "<p>Foo bar <span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["~~~~"]}\"></span> </p>",
|
||
|
"expected": true
|
||
|
},
|
||
|
{
|
||
|
"msg": "Signature node (with some junk from switching)",
|
||
|
"html": "<p>Foo bar <span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["~~~~"]}\" data-dtsignatureforswitching=\"1\" data-parsoid=\"{"stx":"html","dsr":[9,55,39,7]}\"></span></p>",
|
||
|
"expected": true
|
||
|
},
|
||
|
{
|
||
|
"msg": "Signature node (not at the end)",
|
||
|
"html": "<p>(Foo bar <span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["~~~~"]}\"></span>)</p>",
|
||
|
"expected": false
|
||
|
},
|
||
|
{
|
||
|
"msg": "Signature node (not at the end, multiline)",
|
||
|
"html": "<p>Foo bar <span typeof=\"mw:Transclusion\" data-mw=\"{"parts":["~~~~"]}\"></span></p><p>Baz</p>",
|
||
|
"expected": false
|
||
|
}
|
||
|
]
|