r73988 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73987‎ | r73988 | r73989 >
Date:21:52, 29 September 2010
Author:platonides
Status:deferred
Tags:
Comment:
Added a couple of <nowiki> - <pre> tests per bug 13238
Modified paths:
  • /trunk/phase3/maintenance/tests/parser/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/parser/parserTests.txt
@@ -427,6 +427,59 @@
428428
429429 !! end
430430
 431+!! test
 432+<nowiki> inside <pre> (bug 13238)
 433+!! input
 434+<pre>
 435+<nowiki>
 436+</pre>
 437+<pre>
 438+<nowiki></nowiki>
 439+</pre>
 440+<pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
 441+!! result
 442+<pre>
 443+&lt;nowiki&gt;
 444+</pre>
 445+<pre>
 446+
 447+</pre>
 448+<pre>&lt;nowiki&gt;Foo&lt;/nowiki&gt;</pre>
 449+
 450+!! end
 451+
 452+!! test
 453+<nowiki> and <pre> preference (first one wins)
 454+!! input
 455+<pre>
 456+<nowiki>
 457+</pre>
 458+</nowiki>
 459+</pre>
 460+
 461+<nowiki>
 462+<pre>
 463+<nowiki>
 464+</pre>
 465+</nowiki>
 466+</pre>
 467+
 468+!! result
 469+<pre>
 470+&lt;nowiki&gt;
 471+</pre>
 472+<p>&lt;/nowiki&gt;
 473+&lt;/pre&gt;
 474+</p><p>
 475+&lt;pre&gt;
 476+&lt;nowiki&gt;
 477+&lt;/pre&gt;
 478+
 479+&lt;/pre&gt;
 480+</p>
 481+!! end
 482+
 483+
431484 ###
432485 ### Definition lists
433486 ###

Status & tagging log