Parser tests for <pre> tag with attributes (bug 3202)
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 6 Jun 2006 22:50:28 +0000 (22:50 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 6 Jun 2006 22:50:28 +0000 (22:50 +0000)
maintenance/parserTests.txt

index 72ee3ed..a6a8aec 100644 (file)
@@ -312,6 +312,42 @@ And a <a href="/wiki/Main_Page" title="Main Page">link</a>
 
 !! end
 
+!! test
+<pre> with attributes (bug 3202)
+!! input
+<pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
+!! result
+<pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
+
+!! end
+
+!! test
+<pre> with width attribute (bug 3202)
+!! input
+<pre width="8">Narrow screen goodies</pre>
+!! result
+<pre width="8">Narrow screen goodies</pre>
+
+!! end
+
+!! test
+<pre> with forbidden attribute (bug 3202)
+!! input
+<pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
+!! result
+<pre width="8">Narrow screen goodies</pre>
+
+!! end
+
+!! test
+<pre> with forbidden attribute values (bug 3202)
+!! input
+<pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
+!! result
+<pre width="8">Narrow screen goodies</pre>
+
+!! end
+
 ###
 ### Definition lists
 ###