(bug 20281) test the parsing of inline URLs.
authorAntoine Musso <hashar@free.fr>
Thu, 14 Feb 2013 21:13:35 +0000 (22:13 +0100)
committerAntoine Musso <hashar@free.fr>
Fri, 22 Feb 2013 14:39:54 +0000 (15:39 +0100)
It turns out we did not have a parser test to check we properly parse
inline URL such as:

 http://en.wikipedia.org/wiki/Main_Page

That should create a basic anchor pointing to the URL and containing the
full URL.

Change-Id: I1d1240b21e7b1b7c79d0ba224c8de2767bf9a2c1
X-EasterEgg: yes

RELEASE-NOTES-1.21
tests/parser/parserTests.txt

index 8fccf3b..59199db 100644 (file)
@@ -101,6 +101,7 @@ production.
   tables. To be marked up as such.
 * maintenance/sql.php learned the --cluster option. Let you run the script
   on some external cluster instead of the primary cluster for a given wiki.
+* (bug 20281) test the parsing of inline URLs.
 
 === Bug fixes in 1.21 ===
 * (bug 40353) SpecialDoubleRedirect should support interwiki redirects.
index 1f84aae..df8b9e2 100644 (file)
@@ -162,6 +162,16 @@ baz
 </p>
 !! end
 
+!! test
+Parsing an URL
+!! input
+http://fr.wikipedia.org/wiki/🍺
+<!-- EasterEgg we love beer, better be able be able to link to it -->
+!! result
+<p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
+</p>
+!! end
+
 !! test
 Simple list
 !! input