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:
Bartosz Dziewoński 2020-07-30 01:11:18 +02:00
parent 8307eb5cb2
commit c8d06f6bd6
4 changed files with 31 additions and 0 deletions

View file

@ -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",

View 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><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>

View 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>

View file

@ -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",