mediawiki-extensions-Cite/tests/parser/citeSmokeTests2.txt
C. Scott Ananian d730d17c1a parser tests: move test which requires {{#ifeq}} into its own file
Since parser test requirements are per-file, move the smoke test which
requires `{{#ifeq}}` (from [[mw:Extension:ParserFunctions]]) into its
own file and define the requirement properly in the file header.

That avoids spurious parser test failures if developers don't have
the ParserFunctions extension installed locally.

Change-Id: Ia5ffbe0896d5033fe2da526e42bf111edbc56adf
2022-05-27 11:38:02 -04:00

22 lines
638 B
Plaintext

# This smoketest requires the #ifeq function to be defined
!! options
version=2
requirements=extension:ParserFunctions
!! 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