Merge "Improve sorting on SpecialWanted*-Pages"
[mediawiki.git] / tests / parser / extraParserTests.txt
blob50d1bc9e7a6e2854be9fb018ebcdcf1ca9d6c452
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 (stripped)
9 !! input
10 [http://www.example.com\0 test]
11 !! result
12 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
13 </p>
14 !! end
16 !! test
17 External links: invalid character backspace (preserved)
18 !! options
19 preprocessor=Preprocessor_Hash
20 !! input
21 [http://www.example.com\b test]
22 !! result
23 <p>[<a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a>\b test]
24 </p>
25 !! end
27 !! test
28 External links: invalid character backspace (replaced)
29 !! options
30 preprocessor=Preprocessor_DOM
31 !! input
32 [http://www.example.com\b test]
33 !! result
34 <p>[<a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a>� test]
35 </p>
36 !! end
38 !! test
39 Magic link: invalid character NUL (stripped)
40 !! input
41 http://www.example.com\0 test
42 !! result
43 <p><a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a> test
44 </p>
45 !! end
47 !! test
48 Magic link: invalid character backspace (preserved)
49 !! options
50 preprocessor=Preprocessor_Hash
51 !! input
52 http://www.example.com\b test
53 !! result
54 <p><a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a>\b test
55 </p>
56 !! end
58 !! test
59 Magic link: invalid character backspace (replaced)
60 !! options
61 preprocessor=Preprocessor_DOM
62 !! input
63 http://www.example.com\b test
64 !! result
65 <p><a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a>� test
66 </p>
67 !! end
69 !! test
70 External links: tab character
71 !! input
72 [http://www.example.com Alice in        Wonderland]
73 !! result
74 <p><a rel="nofollow" class="external text" href="http://www.example.com">Alice in       Wonderland</a>
75 </p>
76 !! end