Test non-ASCII / URL pseudo-tags
authorGabriel Wicke <gwicke@wikimedia.org>
Tue, 20 Nov 2012 00:56:59 +0000 (16:56 -0800)
committerGabriel Wicke <gwicke@wikimedia.org>
Tue, 20 Nov 2012 02:29:16 +0000 (18:29 -0800)
Make sure these are rendered and round-tripped properly.

* Tags with names outside [a-zA-Z][a-zA-Z0-9]* are rendered as plain text
* Angle brackets around URLs render as angle brackets around URL links

Change-Id: I7f0653cbbbb6ccb9a9aa0ecfa29a0c2e78091343

tests/parser/parserTests.txt

index ac3113e..b184792 100644 (file)
@@ -7197,6 +7197,23 @@ DIV IN UPPERCASE
 
 !!end
 
+!! test
+Non-ASCII pseudo-tags are rendered as text
+!! input
+<khyô>
+!! result
+<p>&lt;khyô&gt;
+</p>
+!! end
+
+!! test
+Pseudo-tag with URL 'name' renders as url link
+!! input
+<http://example.com/>
+!! result
+<p>&lt;<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>&gt;
+</p>
+!! end
 
 !! test
 text with amp in the middle of nowhere