r14531 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14530‎ | r14531 | r14532 >
Date:21:11, 1 June 2006
Author:brion
Status:old
Tags:
Comment:
Add regression test for bug 6164
Modified paths:
  • /trunk/extensions/Cite/citeParserTests.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Cite/citeParserTests.txt
@@ -97,3 +97,22 @@
9898 <ol class="references"><li id="_note-0"><a href="#_ref-0" title="">↑</a> Text</li></ol>
9999
100100 !! 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

Follow-up revisions

RevisionCommit summaryAuthorDate
r14532* (bug 6164) Fix regression with <gallery> resetting <ref> statebrion21:22, 1 June 2006
r16954* (bug 6164) Avoid smashing Cite state if message transformation triggers...brion01:07, 12 October 2006
r35828Revert r35819 -- broke thumbnailing....brion23:46, 3 June 2008

Status & tagging log