mediawiki-extensions-Discus.../tests/cases/auto-sign-wikitext.json
Ed Sanders 6459e7dc82 Move wikitext modifiers to modifier.js
Re-create methods in PHP.

Change-Id: Iae6117b65e3b8f50ecc68e1e3ea17c8359bdcb06
2020-07-01 17:06:02 +01:00

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 --~~~~"
}
]