mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-30 17:54:20 +00:00
Merge "Add more tests for edge cases of references without text"
This commit is contained in:
commit
3b5bc4dbb2
|
@ -459,3 +459,25 @@ Bla.<ref></ref>
|
|||
refs with no name must have content</strong>
|
||||
</p>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
<ref> with an empty-string name parameter and no content.
|
||||
!! input
|
||||
Bla.<ref name=""></ref>
|
||||
!! result
|
||||
<p>Bla.<strong class="error mw-ext-cite-error">Cite error: Invalid <code><ref></code> tag;
|
||||
refs with no name must have content</strong>
|
||||
</p>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
<ref> with an empty-string name parameter and no content.
|
||||
!! input
|
||||
Bla.<ref name="void"></ref>
|
||||
!! result
|
||||
Bla.<sup id="cite_ref-void_1-0" class="reference"><a href="#cite_note-void-1">[1]</a></sup><ol class="references">
|
||||
<li id="cite_note-void"><span class="mw-cite-backlink"><a href="#cite_ref-void_0">↑</a></span> <strong class="error mw-ext-cite-error">Cite error: Invalid <code><ref></code> tag;
|
||||
no text was provided for refs named <code>void</code></strong></li>
|
||||
</ol>
|
||||
|
||||
!! end
|
||||
|
|
Loading…
Reference in a new issue