mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Merge "parser tests: move test which requires {{#ifeq}} into its own file" into REL1_35
This commit is contained in:
commit
759bd71a52
|
@ -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">[1]</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
|
||||
|
|
19
tests/parser/citeSmokeTests2.txt
Normal file
19
tests/parser/citeSmokeTests2.txt
Normal 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">[1]</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
|
Loading…
Reference in a new issue