mediawiki-extensions-CiteTh.../citeCatTreeParserTests.txt
Platonides 9fc91b9899 Remove Cite singleton. Store it inside each associated parser at $parser->extCite
This fixes bug 20748 and bug 15819 without breaking the other tests. Reverts r88971.
The conflict with CategoryTree was the old problem of a message being called inside 
of a parser callback, this time with clearState for which the hook is global.
2011-05-31 17:49:22 +00:00

25 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Force the test runner to ensure the extension is loaded
!! hooks
ref
references
categorytree
!! endhooks
!! test
Bug 20748 - <references /> doesn't work after category tree in some cases
!! input
<ref>ref</ref>
<categorytree showcount=on>Articles tagged for deletion and rescue</categorytree>
<references />
!! result
<p><sup id="cite_ref-0" class="reference"><a href="#cite_note-0">[1]</a></sup>
</p>
<div class=" CategoryTreeTag"><div class="CategoryTreeSection"><div class="CategoryTreeItem"><span class="CategoryTreeEmptyBullet">[<b>×</b>] </span> <a class="CategoryTreeLabel CategoryTreeLabelNs14 new CategoryTreeLabelCategory" href="/index.php?title=Category:Articles_tagged_for_deletion_and_rescue&amp;action=edit&amp;redlink=1">Articles tagged for deletion and rescue</a> <span title="contains 0 subcategories, 0 pages, and 0 files">(0)</span></div>
<div class="CategoryTreeChildren" style="display:block"><i class="CategoryTreeNotice">no subcategories</i></div></div>
</div>
<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> ref</li></ol>
!! end