--- parserTests.txt.old 2006-07-08 15:47:40.000000000 +1000 +++ parserTests.txt 2006-07-08 19:50:43.000000000 +1000 @@ -5683,6 +5683,225 @@ !!end + +!! test +[Before] HTML without raw HTML enabled ($wgRawHtml==false) +!! input + +!! result +
<html><script>alert(1);</script></html> +
+!! end + +!! test +HTML with raw HTML ($wgRawHtml==true) +!! options +rawhtml +!! input + +!! result ++
+!! end + + +!! test +[After, checking has been reset] HTML without raw HTML enabled ($wgRawHtml==false) +!! input + +!! result +<html><script>alert(1);</script></html> +
+!! end + + +!! test +Parents of subpages, one level up +!! options +subpage title=[[Subpage test/L1/L2/L3]] +!! input +[[../|L2]] +!! result +L2 +
+!! end + + +!! test +Parents of subpages, one level up, not named +!! options +subpage title=[[Subpage test/L1/L2/L3]] +!! input +[[../]] +!! result + +!! end + + + +!! test +Parents of subpages, two levels up +!! options +disabled +subpage title=[[Subpage test/L1/L2/L3]] +!! input +[[../../|L1]]2 +!! result +L1 +
+!! end + +# Question: should result be "/index.php?title=Subpage_test/L1&action=edit" instead? +!! test +Parents of subpages, two levels up, without trailing slash or name. +!! options +subpage title=[[Subpage test/L1/L2/L3]] +!! input +[[../..]] +!! result +../.. +
+!! end + +# Question: Why should the link text in the above test be "../..", yet in this test the "../.." part is silently dropped? +# Current result:///
+!! test
+Parents of subpages, two levels up, with lots of extra trailing slashes.
+!! options
+subpage title=[[Subpage test/L1/L2/L3]]
+!! input
+[[../../////]]
+!! result
+
+!! end
+
+!! test
+Definition list code coverage
+!! input
+; title : def
+; title : def
+;title: def
+!! result
+ [[Template:Msg]]
+ ><>
+ This is a test template
+This is a test template
+
+
+!! end
+
+!! test
+Don't fall for the self-closing div
+!! input
+
Contents |
ISBN +
+!! end + + # # #