Merge "Integration parser test for ParserFunctions"

This commit is contained in:
jenkins-bot 2019-12-11 08:45:34 +00:00 committed by Gerrit Code Review
commit 6556f75c38

View file

@ -93,3 +93,19 @@ Smoke test for references that are reused *before* defined in <references>
</li>
</ol></div>
!! end
!! test
Erroring parser function shouldn't break references
!! wikitext
<ref>something</ref>
{{#ifeq: {{#expr: string < 5 }} | 1 | true | false or error }}
<references />
!! html
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1">&#91;1&#93;</a></sup>
false or error
</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">something</span>
</li>
</ol></div>
!! end