Index: trunk/extensions/Cite/citeParserTests.txt |
— | — | @@ -0,0 +1,99 @@ |
| 2 | +# Force the test runner to ensure the extension is loaded |
| 3 | +!! hooks |
| 4 | +ref |
| 5 | +references |
| 6 | +!! endhooks |
| 7 | + |
| 8 | +!! test |
| 9 | +Simple <ref>, no <references/> |
| 10 | +!! input |
| 11 | +Wikipedia rocks!<ref>Proceeds of Rockology, vol. XXI</ref> |
| 12 | +!! result |
| 13 | +<p>Wikipedia rocks!<sup id="_ref-0" class="reference"><a href="#_note-0" title="">[1]</a></sup> |
| 14 | +</p> |
| 15 | +!! end |
| 16 | + |
| 17 | +!! test |
| 18 | +Simple <ref>, with <references/> |
| 19 | +!! input |
| 20 | +Wikipedia rocks!<ref>Proceeds of Rockology, vol. XXI</ref> |
| 21 | + |
| 22 | +<references/> |
| 23 | +!! result |
| 24 | +<p>Wikipedia rocks!<sup id="_ref-0" class="reference"><a href="#_note-0" title="">[1]</a></sup> |
| 25 | +</p> |
| 26 | +<ol class="references"><li id="_note-0"><a href="#_ref-0" title="">↑</a> Proceeds of Rockology, vol. XXI</li></ol> |
| 27 | + |
| 28 | +!! end |
| 29 | + |
| 30 | + |
| 31 | +!! article |
| 32 | +Template:Simple template |
| 33 | +!! text |
| 34 | +A ''simple'' template. |
| 35 | +!! endarticle |
| 36 | + |
| 37 | + |
| 38 | +!! test |
| 39 | +<ref> with a simple template |
| 40 | +!! input |
| 41 | +Templating<ref>{{simple template}}</ref> |
| 42 | + |
| 43 | +<references/> |
| 44 | +!! result |
| 45 | +<p>Templating<sup id="_ref-0" class="reference"><a href="#_note-0" title="">[1]</a></sup> |
| 46 | +</p> |
| 47 | +<ol class="references"><li id="_note-0"><a href="#_ref-0" title="">↑</a> A <i>simple</i> template.</li></ol> |
| 48 | + |
| 49 | +!! end |
| 50 | + |
| 51 | +!! test |
| 52 | +<ref> with a <nowiki> |
| 53 | +!! input |
| 54 | +Templating<ref><nowiki>{{simple template}}</nowiki></ref> |
| 55 | + |
| 56 | +<references/> |
| 57 | +!! result |
| 58 | +<p>Templating<sup id="_ref-0" class="reference"><a href="#_note-0" title="">[1]</a></sup> |
| 59 | +</p> |
| 60 | +<ol class="references"><li id="_note-0"><a href="#_ref-0" title="">↑</a> {{simple template}}</li></ol> |
| 61 | + |
| 62 | +!! end |
| 63 | + |
| 64 | + |
| 65 | +!! test |
| 66 | +<ref> in a <nowiki> |
| 67 | +!! input |
| 68 | +Templating<nowiki><ref>{{simple template}}</ref></nowiki> |
| 69 | + |
| 70 | +<references/> |
| 71 | +!! result |
| 72 | +<p>Templating<ref>{{simple template}}</ref> |
| 73 | +</p><p><ol class="references"></ol> |
| 74 | +</p> |
| 75 | +!! end |
| 76 | + |
| 77 | +!! test |
| 78 | +<ref> in a <!--comment--> |
| 79 | +!! input |
| 80 | +Templating<!--<ref>{{simple template}}</ref>--> |
| 81 | + |
| 82 | +<references/> |
| 83 | +!! result |
| 84 | +<p>Templating |
| 85 | +</p><p><ol class="references"></ol> |
| 86 | +</p> |
| 87 | +!! end |
| 88 | + |
| 89 | +!! test |
| 90 | +<!--comment--> in a <ref> (bug 5384) |
| 91 | +!! input |
| 92 | +Templating<ref>Text<!--comment--></ref> |
| 93 | + |
| 94 | +<references/> |
| 95 | +!! result |
| 96 | +<p>Templating<sup id="_ref-0" class="reference"><a href="#_note-0" title="">[1]</a></sup> |
| 97 | +</p> |
| 98 | +<ol class="references"><li id="_note-0"><a href="#_ref-0" title="">↑</a> Text</li></ol> |
| 99 | + |
| 100 | +!! end |
Property changes on: trunk/extensions/Cite/citeParserTests.txt |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 101 | + native |