mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-17 13:12:26 +00:00
6459e7dc82
Re-create methods in PHP. Change-Id: Iae6117b65e3b8f50ecc68e1e3ea17c8359bdcb06
54 lines
1 KiB
JSON
54 lines
1 KiB
JSON
[
|
|
{
|
|
"msg": "Simple message",
|
|
"wikitext": "Foo bar",
|
|
"expected": "Foo bar ~~~~"
|
|
},
|
|
{
|
|
"msg": "Custom prefix",
|
|
"wikitext": "Foo bar",
|
|
"expected": "Foo bar --~~~~",
|
|
"prefix": " --"
|
|
},
|
|
{
|
|
"msg": "Whitespace",
|
|
"wikitext": " \t Foo bar \t ",
|
|
"expected": "Foo bar ~~~~"
|
|
},
|
|
{
|
|
"msg": "Already signed",
|
|
"wikitext": "Foo bar ~~~~",
|
|
"expected": "Foo bar ~~~~"
|
|
},
|
|
{
|
|
"msg": "Already signed multi-line",
|
|
"wikitext": "Foo\n\nbar\n\n~~~~",
|
|
"expected": "Foo\n\nbar\n\n~~~~"
|
|
},
|
|
{
|
|
"msg": "Already signed with hyphens",
|
|
"wikitext": "Foo bar --~~~~",
|
|
"expected": "Foo bar --~~~~"
|
|
},
|
|
{
|
|
"msg": "Already signed without space",
|
|
"wikitext": "Foo bar~~~~",
|
|
"expected": "Foo bar~~~~"
|
|
},
|
|
{
|
|
"msg": "Signed with 5 tildes",
|
|
"wikitext": "Foo bar ~~~~~",
|
|
"expected": "Foo bar ~~~~"
|
|
},
|
|
{
|
|
"msg": "Signed with 3 tildes",
|
|
"wikitext": "Foo bar ~~~",
|
|
"expected": "Foo bar ~~~~"
|
|
},
|
|
{
|
|
"msg": "Signed with 3 tildes and prefix",
|
|
"wikitext": "Foo bar --~~~",
|
|
"expected": "Foo bar --~~~~"
|
|
}
|
|
]
|