Merge "parser tests: move test which requires {{#ifeq}} into its own file" into REL1_35

This commit is contained in:
jenkins-bot 2023-06-27 10:28:52 +00:00 committed by Gerrit Code Review
commit 759bd71a52
2 changed files with 19 additions and 16 deletions

View file

@ -98,22 +98,6 @@ Smoke test for references that are reused *before* defined in <references>
</ol></div>
!! end
!! test
T240248: 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
!! test
It should be impossible to roll back a follow="…", because it can't have a name
!! wikitext

View file

@ -0,0 +1,19 @@
!! version 2
# This smoketest requires the #ifeq function to be defined
!! test
T240248: Erroring parser function shouldn't break references
!! options
requirements=extension:ParserFunctions
!! 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