Revert from 109557 to 109556 for bug24430 patch, it causes layout issue
[mediawiki.git] / tests / parser / extraParserTests.txt
blobbef8f506da50cf32635a51861907122bc0356056
1 # This is another parserTest file.
2 # Parser tests should go to parserTests.txt
3 # This one got exiliated here because its broken character
4 # a) Already lost this test for years when removed on r12975
5 # b) Some text editors choke in the whole file due to the \0 character
7 !! test
8 External links: invalid character NUL
9 !! options
10 noxml
11 preprocessor=Preprocessor_Hash
12 !! input
13 [http://www.example.com\0 test]
14 !! result
15 <p>[<a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a>\0 test]
16 </p>
17 !! end
19 !! test
20 External links: invalid character backspace
21 !! options
22 noxml
23 preprocessor=Preprocessor_Hash
24 !! input
25 [http://www.example.com\b test]
26 !! result
27 <p>[<a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a>\b test]
28 </p>
29 !! end
32 !! test
33 Magic link: invalid character
34 !! options
35 noxml
36 preprocessor=Preprocessor_Hash
37 !! input
38 http://www.example.com\0
39 !! result
40 <p><a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a>\0
41 </p>
42 !! end
44 !! test
45 External links: tab character
46 !! input
47 [http://www.example.com Alice in        Wonderland]
48 !! result
49 <p><a rel="nofollow" class="external text" href="http://www.example.com">Alice in       Wonderland</a>
50 </p>
51 !! end