http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89013

Revision: 89013
Author:   mah
Date:     2011-05-28 02:09:01 +0000 (Sat, 28 May 2011)
Log Message:
-----------
follow up r88997 with a rough attempt at a parser test, though, really, we 
can't test signature expansion

Modified Paths:
--------------
    trunk/phase3/tests/parser/parserTests.txt

Modified: trunk/phase3/tests/parser/parserTests.txt
===================================================================
--- trunk/phase3/tests/parser/parserTests.txt   2011-05-28 00:57:21 UTC (rev 
89012)
+++ trunk/phase3/tests/parser/parserTests.txt   2011-05-28 02:09:01 UTC (rev 
89013)
@@ -9108,7 +9108,68 @@
 </p>
 !! end
 
+!! article
+Template:Bug93a
+!! text
+*a<b>c
+*<nowiki>d<b>e</nowiki>
+</b>
+*<includeonly>f<b>g</includeonly>
+*<includeonly><nowiki>h<b>i</nowiki></includeonly>
+!! endarticle
 
+!! article
+Template:Bug93b
+!! text
+*a<b>c
+*<nowiki>d<b>e</nowiki>
+</b>
+*<noinclude>j<b>k</noinclude>
+*<noinclude><nowiki>l<b>m</nowiki></noinclude>
+!! endarticle
+
+!! article
+Template:Bug93c
+!! text
+*a<b>c
+*<nowiki>d<b>e</nowiki>
+</b>
+*<onlyinclude>n<b>o</onlyinclude>
+*<onlyinclude><nowiki>p<b>q</nowiki></onlyinclude>
+!! endarticle
+
+!! test
+Signature expansion in nowiki tags. (bug 93)
+!! input
+{{Bug93a}}
+one
+{{Bug93b}}
+two
+{{Bug93c}}
+!! result
+<ul><li>a<b>c
+</li><li>d&lt;b&gt;e
+</li></ul>
+<p></b>
+</p>
+<ul><li>f<b>g
+</li><li>h&lt;b&gt;i
+</li></ul>
+<p>one
+</p>
+<ul><li>a&lt;b&gt;c
+</li><li>d&lt;b&gt;e
+</li></ul>
+<p></b>
+</p>
+<ul><li>
+</li><li>
+</li></ul>
+<p>two
+n<b>op&lt;b&gt;q</b>
+</p>
+!! end
+
 TODO:
 more images
 more tables


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to