r102971 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102970‎ | r102971 | r102972 >
Date:12:20, 14 November 2011
Author:catrope
Status:ok
Tags:
Comment:
Followup r102970, fix parser tests
Modified paths:
  • /trunk/extensions/Cite/citeParserTests.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Cite/citeParserTests.txt
@@ -23,7 +23,8 @@
2424 !! result
2525 <p>Wikipedia rocks!<sup id="cite_ref-0" class="reference"><a href="#cite_note-0">[1]</a></sup>
2626 </p>
27 -<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> Proceeds of Rockology, vol. XXI</li></ol>
 27+<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> Proceeds of Rockology, vol. XXI
 28+</li></ol>
2829
2930 !! end
3031
@@ -44,7 +45,8 @@
4546 !! result
4647 <p>Templating<sup id="cite_ref-0" class="reference"><a href="#cite_note-0">[1]</a></sup>
4748 </p>
48 -<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> A <i>simple</i> template.</li></ol>
 49+<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> A <i>simple</i> template.
 50+</li></ol>
4951
5052 !! end
5153
@@ -57,7 +59,8 @@
5860 !! result
5961 <p>Templating<sup id="cite_ref-0" class="reference"><a href="#cite_note-0">[1]</a></sup>
6062 </p>
61 -<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> {{simple template}}</li></ol>
 63+<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> {{simple template}}
 64+</li></ol>
6265
6366 !! end
6467
@@ -95,7 +98,8 @@
9699 !! result
97100 <p>Templating<sup id="cite_ref-0" class="reference"><a href="#cite_note-0">[1]</a></sup>
98101 </p>
99 -<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> Text</li></ol>
 102+<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> Text
 103+</li></ol>
100104
101105 !! end
102106
@@ -117,7 +121,8 @@
118122 </div>
119123 </div></li>
120124 </ul>
121 -<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> one</li></ol>
 125+<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> one
 126+</li></ol>
122127
123128 !! end
124129
@@ -152,7 +157,8 @@
153158 <p><sup id="cite_ref-blank_0-0" class="reference"><a href="#cite_note-blank-0">[1]</a></sup>
154159 </p><p><sup id="cite_ref-blank_0-1" class="reference"><a href="#cite_note-blank-0">[1]</a></sup>
155160 </p>
156 -<ol class="references"><li id="cite_note-blank-0">↑ <sup><a href="#cite_ref-blank_0-0">1.0</a></sup> <sup><a href="#cite_ref-blank_0-1">1.1</a></sup> content</li></ol>
 161+<ol class="references"><li id="cite_note-blank-0">↑ <sup><a href="#cite_ref-blank_0-0">1.0</a></sup> <sup><a href="#cite_ref-blank_0-1">1.1</a></sup> content
 162+</li></ol>
157163
158164 !! end
159165
@@ -168,7 +174,8 @@
169175 <p><sup id="cite_ref-blank_0-0" class="reference"><a href="#cite_note-blank-0">[1]</a></sup>
170176 </p><p><sup id="cite_ref-blank_0-1" class="reference"><a href="#cite_note-blank-0">[1]</a></sup>
171177 </p>
172 -<ol class="references"><li id="cite_note-blank-0">↑ <sup><a href="#cite_ref-blank_0-0">1.0</a></sup> <sup><a href="#cite_ref-blank_0-1">1.1</a></sup> 0</li></ol>
 178+<ol class="references"><li id="cite_note-blank-0">↑ <sup><a href="#cite_ref-blank_0-0">1.0</a></sup> <sup><a href="#cite_ref-blank_0-1">1.1</a></sup> 0
 179+</li></ol>
173180
174181 !! end
175182
@@ -184,7 +191,8 @@
185192 <p><sup id="cite_ref-blank_0-0" class="reference"><a href="#cite_note-blank-0">[1]</a></sup>
186193 </p><p><sup id="cite_ref-blank_0-1" class="reference"><a href="#cite_note-blank-0">[1]</a></sup>
187194 </p>
188 -<ol class="references"><li id="cite_note-blank-0">↑ <sup><a href="#cite_ref-blank_0-0">1.0</a></sup> <sup><a href="#cite_ref-blank_0-1">1.1</a></sup> 1</li></ol>
 195+<ol class="references"><li id="cite_note-blank-0">↑ <sup><a href="#cite_ref-blank_0-0">1.0</a></sup> <sup><a href="#cite_ref-blank_0-1">1.1</a></sup> 1
 196+</li></ol>
189197
190198 !! end
191199
@@ -201,9 +209,12 @@
202210 <sup id="cite_ref-123test_1-0" class="reference"><a href="#cite_note-123test-1">[2]</a></sup>
203211 <sup id="cite_ref-test123_2-0" class="reference"><a href="#cite_note-test123-2">[3]</a></sup>
204212 </p>
205 -<ol class="references"><li id="cite_note-test123test-0"><a href="#cite_ref-test123test_0-0">↑</a> One</li>
206 -<li id="cite_note-123test-1"><a href="#cite_ref-123test_1-0">↑</a> Two</li>
207 -<li id="cite_note-test123-2"><a href="#cite_ref-test123_2-0">↑</a> Three</li></ol>
 213+<ol class="references"><li id="cite_note-test123test-0"><a href="#cite_ref-test123test_0-0">↑</a> One
 214+</li>
 215+<li id="cite_note-123test-1"><a href="#cite_ref-123test_1-0">↑</a> Two
 216+</li>
 217+<li id="cite_note-test123-2"><a href="#cite_ref-test123_2-0">↑</a> Three
 218+</li></ol>
208219
209220 !! end
210221
@@ -235,7 +246,8 @@
236247 parameter "group" is allowed only.
237248 Use <code>&lt;references /&gt;</code>, or <code>&lt;references group="..." /&gt;</code></strong>
238249 </p>
239 -<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> Also zero, but differently! (Normal ref)</li>
 250+<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> Also zero, but differently! (Normal ref)
 251+</li>
240252 <li id="cite_note-bar"><a href="#cite_ref-bar_0">↑</a> <strong class="error">Cite error: Invalid <code>&lt;ref&gt;</code> tag;
241253 no text was provided for refs named <code>bar</code></strong></li>
242254 <li id="cite_note-blankwithnoreference"><a href="#cite_ref-blankwithnoreference_0">↑</a> <strong class="error">Cite error: Invalid <code>&lt;ref&gt;</code> tag;
@@ -256,8 +268,10 @@
257269 <p>Wikipedia rocks!<sup id="cite_ref-0" class="reference"><a href="#cite_note-0">[1]</a></sup>
258270 Wikipedia rocks!<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[note 1]</a></sup>
259271 </p>
260 -<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> Proceeds of Rockology, vol. XXI</li></ol>
261 -<ol class="references"><li id="cite_note-1"><a href="#cite_ref-1">↑</a> Proceeds of Rockology, vol. XXI</li></ol>
 272+<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> Proceeds of Rockology, vol. XXI
 273+</li></ol>
 274+<ol class="references"><li id="cite_note-1"><a href="#cite_ref-1">↑</a> Proceeds of Rockology, vol. XXI
 275+</li></ol>
262276
263277 !! end
264278
@@ -275,11 +289,14 @@
276290 </p>
277291 <dl><dt>refs
278292 </dt></dl>
279 -<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> ref a</li>
280 -<li id="cite_note-2"><a href="#cite_ref-2">↑</a> ref c</li></ol>
 293+<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> ref a
 294+</li>
 295+<li id="cite_note-2"><a href="#cite_ref-2">↑</a> ref c
 296+</li></ol>
281297 <dl><dt>notes
282298 </dt></dl>
283 -<ol class="references"><li id="cite_note-1"><a href="#cite_ref-1">↑</a> note b</li></ol>
 299+<ol class="references"><li id="cite_note-1"><a href="#cite_ref-1">↑</a> note b
 300+</li></ol>
284301
285302 !! end
286303
@@ -294,7 +311,8 @@
295312 !! result
296313 <p><sup id="cite_ref-foo_0-0" class="reference"><a href="#cite_note-foo-0">[1]</a></sup>
297314 </p>
298 -<ol class="references"><li id="cite_note-foo-0"><a href="#cite_ref-foo_0-0">↑</a> BAR</li></ol>
 315+<ol class="references"><li id="cite_note-foo-0"><a href="#cite_ref-foo_0-0">↑</a> BAR
 316+</li></ol>
299317
300318 !! end
301319
@@ -309,7 +327,8 @@
310328 !! result
311329 <p><sup id="cite_ref-foo_0-0" class="reference"><a href="#cite_note-foo-0">[1]</a></sup>
312330 </p>
313 -<ol class="references"><li id="cite_note-foo-0"><a href="#cite_ref-foo_0-0">↑</a> BAR</li></ol>
 331+<ol class="references"><li id="cite_note-foo-0"><a href="#cite_ref-foo_0-0">↑</a> BAR
 332+</li></ol>
314333
315334 !! end
316335
@@ -350,6 +369,7 @@
351370 !! result
352371 <p>Wikipedia rocks!<sup id="cite_ref-0" class="reference"><a href="#cite_note-0">[wa']</a></sup>
353372 </p>
354 -<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> Proceeds of Rockology, vol. XXI</li></ol>
 373+<ol class="references"><li id="cite_note-0"><a href="#cite_ref-0">↑</a> Proceeds of Rockology, vol. XXI
 374+</li></ol>
355375
356376 !! end

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r102970(bug 20050) References containing numbered lists cause Tidy to corrupt the re...catrope12:02, 14 November 2011

Status & tagging log