2022-02-04 21:58:20 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"msg": "Simple message",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p>Foo bar\n</p>",
|
|
|
|
"expected": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Simple message [with heading]",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<h2><span class=\"mw-headline\" id=\"Foo\">Foo</span></h2>\n<p>bar\n</p>",
|
|
|
|
"expected": false
|
|
|
|
},
|
2022-03-21 22:47:52 +00:00
|
|
|
{
|
|
|
|
"msg": "Simple message [with empty heading]",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<h2><span class=\"mw-headline\" id=\"\"></span></h2>\n<p>bar\n</p>",
|
|
|
|
"expected": false
|
|
|
|
},
|
2022-02-04 21:58:20 +00:00
|
|
|
{
|
|
|
|
"msg": "Simple message [indented]",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<dl><dd>Foo bar</dd></dl>",
|
|
|
|
"expected": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Already signed",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p>Foo bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)\n</p>",
|
|
|
|
"expected": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Already signed [with heading]",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<h2><span class=\"mw-headline\" id=\"Foo\">Foo</span></h2>\n<p>bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)\n</p>",
|
|
|
|
"expected": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Already signed [indented]",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<dl><dd>Foo bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)</dd></dl>",
|
|
|
|
"expected": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Already signed with hyphens",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p>Foo bar --<a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)\n</p>",
|
|
|
|
"expected": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Already signed without space",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p>Foo bar<a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)\n</p>",
|
|
|
|
"expected": true
|
|
|
|
},
|
|
|
|
{
|
2024-04-25 20:08:16 +00:00
|
|
|
"msg": "Incorrectly signed (with 5 tildes)",
|
2022-02-04 21:58:20 +00:00
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p>Foo bar 00:01, 1 January 2020 (UTC)\n</p>",
|
|
|
|
"expected": false
|
|
|
|
},
|
|
|
|
{
|
2024-04-25 20:08:16 +00:00
|
|
|
"msg": "Incorrectly signed (with 3 tildes)",
|
2022-02-04 21:58:20 +00:00
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p>Foo bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>)\n</p>",
|
|
|
|
"expected": false
|
|
|
|
},
|
|
|
|
{
|
2024-04-25 20:08:16 +00:00
|
|
|
"msg": "Incorrectly signed (by the wrong user)",
|
2022-02-04 21:58:20 +00:00
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "Y",
|
|
|
|
"html": "<p>Foo bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)\n</p>",
|
|
|
|
"expected": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Already signed (self-link on user talk page)",
|
|
|
|
"title": "User talk:X",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p>Foo bar <a class=\"mw-selflink selflink\">X</a> 00:01, 1 January 2020 (UTC)\n</p>",
|
|
|
|
"expected": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Already signed (not at the end, parentheses)",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p>(Foo bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC))\n</p>",
|
|
|
|
"expected": true
|
|
|
|
},
|
2024-04-25 20:08:16 +00:00
|
|
|
{
|
|
|
|
"msg": "Already signed (not at the end, with more text following on the same line)",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p>Foo bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC) Ceterum censeo Carthaginem esse delendam.\n</p>",
|
|
|
|
"expected": true
|
|
|
|
},
|
2022-02-04 21:58:20 +00:00
|
|
|
{
|
|
|
|
"msg": "Already signed (not at the end, <small>)",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p><small>Foo bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)</small>\n</p>",
|
|
|
|
"expected": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Already signed (not at the end, <small>) [indented]",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<dl><small>Foo bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)</small></dd></dl>",
|
|
|
|
"expected": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Already signed (wrapper)",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<table>\n<tbody><tr>\n<td>Foo bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)\n</td></tr></tbody></table>",
|
|
|
|
"expected": true
|
|
|
|
},
|
2024-04-25 20:08:16 +00:00
|
|
|
{
|
|
|
|
"msg": "Already signed (wrapper with trailers)",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<table>\n<tbody><tr>\n<td>Foo bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)\n</td></tr></tbody></table> <!-- Template:Foo -->\n<link rel=\"mw:PageProp/Category\" href=\"./Category:Foo\"/>",
|
|
|
|
"expected": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Incorrectly signed (wrapper, with more text following on another line)",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<table>\n<tbody><tr>\n<td>Foo bar <a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)\n</td></tr></tbody></table>\nCeterum censeo Carthaginem esse delendam.",
|
|
|
|
"expected": false
|
|
|
|
},
|
2022-02-04 21:58:20 +00:00
|
|
|
{
|
|
|
|
"msg": "Already signed (multi-line)",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p>Foo\n</p><p>bar\n</p><p><a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)\n</p>",
|
|
|
|
"expected": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"msg": "Already signed (multi-line) [indented]",
|
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<dl><dd>Foo</dd>\n<dd>bar</dd>\n<dd><a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)</dd></dl>",
|
|
|
|
"expected": true
|
|
|
|
},
|
|
|
|
{
|
2024-04-25 20:08:16 +00:00
|
|
|
"msg": "Incorrectly signed (multiline, with more text following on another line)",
|
2022-02-04 21:58:20 +00:00
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<p>Foo\n</p><p><a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)\n</p><p>bar\n</p>",
|
|
|
|
"expected": false
|
|
|
|
},
|
|
|
|
{
|
2024-04-25 20:08:16 +00:00
|
|
|
"msg": "Incorrectly signed (multiline, with more text following on another line) [indented]",
|
2022-02-04 21:58:20 +00:00
|
|
|
"title": "Talk:A",
|
|
|
|
"user": "X",
|
|
|
|
"html": "<dl><dd>Foo</dd>\n<dd><a href=\"/wiki/User:X\" title=\"User:X\">X</a> (<a href=\"/wiki/User_talk:X\" title=\"User talk:X\">talk</a>) 00:01, 1 January 2020 (UTC)</dd>\n<dd>bar</span></dd></dl>",
|
|
|
|
"expected": false
|
|
|
|
}
|
|
|
|
]
|