mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-24 02:48:18 +00:00
Add a test case for replies to top-level comments with mixed indentation
The bug was accidentally fixed in 569db3603c
.
Bug: T252702
Change-Id: I0020ac41adcf111b8496d3d4bce65740faf9e7ef
This commit is contained in:
parent
8307eb5cb2
commit
c8d06f6bd6
|
@ -257,6 +257,8 @@
|
|||
"cases/split-list/split-list-modified.html",
|
||||
"cases/split-list2/split-list2.html",
|
||||
"cases/split-list2/split-list2-modified.html",
|
||||
"cases/mixed-indentation/mixed-indentation.html",
|
||||
"cases/mixed-indentation/mixed-indentation-modified.html",
|
||||
"cases/wrappers/wrappers.html",
|
||||
"cases/wrappers/wrappers-modified.html",
|
||||
"cases/signatures-funny/signatures-funny.html",
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<div class="mw-parser-output"><h2><span class="mw-headline" id="1">1</span></h2>
|
||||
<p>Comment
|
||||
</p>
|
||||
<ul><li>with list <a href="/wiki/User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a href="/wiki/User_talk:Matma_Rex" title="User talk:Matma Rex"><font color="green"><i>talk</i></font></a>) 23:01, 29 July 2020 (UTC)</li></ul><dl><dd data-parsoid="{}">Reply to Matma Rex|2020-07-29T23:01:00.000Z|0</dd></dl>
|
||||
<h2><span class="mw-headline" id="2">2</span></h2>
|
||||
<p>Comment
|
||||
</p>
|
||||
<ul><li>with list</li></ul>
|
||||
<p>and PS <a href="/wiki/User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a href="/wiki/User_talk:Matma_Rex" title="User talk:Matma Rex"><font color="green"><i>talk</i></font></a>) 23:01, 29 July 2020 (UTC)
|
||||
</p><dl><dd data-parsoid="{}">Reply to Matma Rex|2020-07-29T23:01:00.000Z|1</dd></dl>
|
||||
</div>
|
11
tests/cases/mixed-indentation/mixed-indentation.html
Normal file
11
tests/cases/mixed-indentation/mixed-indentation.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<div class="mw-parser-output"><h2><span class="mw-headline" id="1">1</span></h2>
|
||||
<p>Comment
|
||||
</p>
|
||||
<ul><li>with list <a href="/wiki/User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a href="/wiki/User_talk:Matma_Rex" title="User talk:Matma Rex"><font color="green"><i>talk</i></font></a>) 23:01, 29 July 2020 (UTC)</li></ul>
|
||||
<h2><span class="mw-headline" id="2">2</span></h2>
|
||||
<p>Comment
|
||||
</p>
|
||||
<ul><li>with list</li></ul>
|
||||
<p>and PS <a href="/wiki/User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a href="/wiki/User_talk:Matma_Rex" title="User talk:Matma Rex"><font color="green"><i>talk</i></font></a>) 23:01, 29 July 2020 (UTC)
|
||||
</p>
|
||||
</div>
|
|
@ -55,6 +55,13 @@
|
|||
"config": "../data/enwiki-config.json",
|
||||
"data": "../data/enwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "Replies to comments with mixed indentation",
|
||||
"dom": "cases/mixed-indentation/mixed-indentation.html",
|
||||
"expected": "cases/mixed-indentation/mixed-indentation-modified.html",
|
||||
"config": "../data/enwiki-config.json",
|
||||
"data": "../data/enwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "Reply inserted inside/outside various wrapper elements",
|
||||
"dom": "cases/wrappers/wrappers.html",
|
||||
|
|
Loading…
Reference in a new issue