Update tests for 289:
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 11 Oct 2004 21:47:31 +0000 (21:47 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 11 Oct 2004 21:47:31 +0000 (21:47 +0000)
* fix the expected output to match actual behavior with caught invalid chars
* add cases with double-quote (")

maintenance/parserTests.txt

index d47603f..9a08e73 100644 (file)
@@ -530,7 +530,7 @@ BUG 289: ">"-token in bracketed URL
 !! input
 [http://www.example.com/<hello> stuff]
 !! result
-<p>[http://www.example.com/&lt;hello&gt; stuff]
+<p><a href="http://www.example.com/" class='external' title="http://www.example.com/">&lt;hello&gt; stuff</a><span class='urlexpansion'> (<i>http://www.example.com/</i>)</span>
 </p>
 !!end
 
@@ -539,7 +539,25 @@ BUG 289: literal ">"-token in bracketed URL
 !! input
 [http://www.example.com/<b>html</b> stuff]
 !! result
-<p>[http://www.example.com/<b >html</b > stuff]
+<p><a href="http://www.example.com/" class='external' title="http://www.example.com/"><b >html</b > stuff</a><span class='urlexpansion'> (<i>http://www.example.com/</i>)</span>
+</p>
+!!end
+
+!! test
+BUG 289: literal double quote at end of URL
+!! input
+http://www.example.com/"hello"
+!! result
+<p><a href="http://www.example.com/" class='external'>http://www.example.com/</a>"hello"
+</p>
+!!end
+
+!! test
+BUG 289: literal double quote in bracketed URL
+!! input
+[http://www.example.com/"hello" stuff]
+!! result
+<p><a href="http://www.example.com/" class='external' title="http://www.example.com/">"hello" stuff</a><span class='urlexpansion'> (<i>http://www.example.com/</i>)</span>
 </p>
 !!end