mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
Add missing parser tests for relevant responsive edge cases
I tried to run these tests with a very old version of this code base (from 2018) to confirm this is the correct behavior. Bug: T241303 Change-Id: Id97d016b199458aa178ca732282e9c0e91e291a4
This commit is contained in:
parent
6f3fa70913
commit
38d5bd5f39
|
@ -64,6 +64,38 @@ wgCiteResponsiveReferences=true
|
|||
</ol>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
T241303: responsive attribute with no value should *not* disable the wrapper <div>
|
||||
!! config
|
||||
wgCiteResponsiveReferences=true
|
||||
!! wikitext
|
||||
<ref>a</ref>
|
||||
<references responsive />
|
||||
!! html/php
|
||||
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">a</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
T241303: responsive attribute with an empty value should *not* disable the wrapper <div>
|
||||
!! config
|
||||
wgCiteResponsiveReferences=true
|
||||
!! wikitext
|
||||
<ref>a</ref>
|
||||
<references responsive="" />
|
||||
!! html/php
|
||||
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1]</a></sup>
|
||||
</p>
|
||||
<div class="mw-references-wrap"><ol class="references">
|
||||
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">a</span>
|
||||
</li>
|
||||
</ol></div>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
9 references should *not* enable the column mode
|
||||
!! config
|
||||
|
|
Loading…
Reference in a new issue