Index: trunk/extensions/Cite/citeParserTests.txt |
— | — | @@ -97,3 +97,22 @@ |
98 | 98 | <ol class="references"><li id="_note-0"><a href="#_ref-0" title="">↑</a> Text</li></ol> |
99 | 99 | |
100 | 100 | !! end |
| 101 | + |
| 102 | +!! test |
| 103 | +<references> after <gallery> (bug 6164) |
| 104 | +!! input |
| 105 | +<ref>one</ref> |
| 106 | + |
| 107 | +<gallery>Image:Foobar.jpg</gallery> |
| 108 | + |
| 109 | +<references/> |
| 110 | +!! result |
| 111 | +<p><sup id="_ref-0" class="reference"><a href="#_note-0" title="">[1]</a></sup> |
| 112 | +</p> |
| 113 | +<table class="gallery" cellspacing="0" cellpadding="0"><tr><td><div class="gallerybox"><div class="thumb" style="padding: 66px 0;"><a href="https://www.mediawiki.org/wiki/Image:Foobar.jpg" title="Image:Foobar.jpg"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" alt="" /></a></div><div class="gallerytext"> |
| 114 | +</div></div></td> |
| 115 | +</tr> |
| 116 | +</table> |
| 117 | +<ol class="references"><li id="_note-0"><a href="#_ref-0" title="">↑</a> one</li></ol> |
| 118 | + |
| 119 | +!! end |