| 1 |
local $/scip-perl cpan HTML-WikiConverter-MoinMoin 0.54 main/`$/`.; |
| 2 |
requirescip-perl cpan HTML-WikiConverter-MoinMoin 0.54 main/require(). 't/runtests.pl'; |
| 3 |
runtestsscip-perl cpan HTML-WikiConverter-MoinMoin 0.54 main/runtests().( data => <DATA>, dialect => 'MoinMoin' ); |
| 4 |
close DATA; |
| 5 |
|
| 6 |
__DATA__ |
| 7 |
add space between [[BR]] and URL |
| 8 |
__H__ |
| 9 |
<html><a href="http://example.com">http://example.com</a><br /></html> |
| 10 |
__W__ |
| 11 |
http://example.com [[BR]] |
| 12 |
__NEXT__ |
| 13 |
wrap in html |
| 14 |
__H__ |
| 15 |
<a href="http://google.com">GOOGLE</a><br/> |
| 16 |
NewLine |
| 17 |
__W__ |
| 18 |
[[http://google.com|GOOGLE]][[BR]] NewLine |
| 19 |
__NEXT__ |
| 20 |
bold |
| 21 |
__H__ |
| 22 |
<html><b>bold</b></html> |
| 23 |
__W__ |
| 24 |
'''bold''' |
| 25 |
__NEXT__ |
| 26 |
italics |
| 27 |
__H__ |
| 28 |
<html><i>italics</i></html> |
| 29 |
__W__ |
| 30 |
''italics'' |
| 31 |
__NEXT__ |
| 32 |
bold and italics |
| 33 |
__H__ |
| 34 |
<html><b>bold</b> and <i>italics</i></html> |
| 35 |
__W__ |
| 36 |
'''bold''' and ''italics'' |
| 37 |
__NEXT__ |
| 38 |
bold-italics nested |
| 39 |
__H__ |
| 40 |
<html><i><b>bold-italics</b> nested</i></html> |
| 41 |
__W__ |
| 42 |
'''''bold-italics''' nested'' |
| 43 |
__NEXT__ |
| 44 |
strong |
| 45 |
__H__ |
| 46 |
<html><strong>strong</strong></html> |
| 47 |
__W__ |
| 48 |
'''strong''' |
| 49 |
__NEXT__ |
| 50 |
emphasized |
| 51 |
__H__ |
| 52 |
<html><em>emphasized</em></html> |
| 53 |
__W__ |
| 54 |
''emphasized'' |
| 55 |
__NEXT__ |
| 56 |
underlined |
| 57 |
__H__ |
| 58 |
<html><u>text</u></html> |
| 59 |
__W__ |
| 60 |
__text__ |
| 61 |
__NEXT__ |
| 62 |
one-line phrasals |
| 63 |
__H__ |
| 64 |
<html><i>phrasals |
| 65 |
in one line</i></html> |
| 66 |
__W__ |
| 67 |
''phrasals in one line'' |
| 68 |
__NEXT__ |
| 69 |
sup |
| 70 |
__H__ |
| 71 |
<html>x<sup>2</sup></html> |
| 72 |
__W__ |
| 73 |
x^2^ |
| 74 |
__NEXT__ |
| 75 |
sub |
| 76 |
__H__ |
| 77 |
<html>H<sub>2</sub>O</html> |
| 78 |
__W__ |
| 79 |
H,,2,,O |
| 80 |
__NEXT__ |
| 81 |
code |
| 82 |
__H__ |
| 83 |
<html><code>$name = 'stan';</code></html> |
| 84 |
__W__ |
| 85 |
`$name = 'stan';` |
| 86 |
__NEXT__ |
| 87 |
tt |
| 88 |
__H__ |
| 89 |
<html><tt>tt text</tt></html> |
| 90 |
__W__ |
| 91 |
`tt text` |
| 92 |
__NEXT__ |
| 93 |
small |
| 94 |
__H__ |
| 95 |
<html>some <small>small</small> text</html> |
| 96 |
__W__ |
| 97 |
some ~-small-~ text |
| 98 |
__NEXT__ |
| 99 |
big |
| 100 |
__H__ |
| 101 |
<html>some <big>big</big> text</html> |
| 102 |
__W__ |
| 103 |
some ~+big+~ text |
| 104 |
__NEXT__ |
| 105 |
paragraph blocking |
| 106 |
__H__ |
| 107 |
<html><p>p1</p><p>p2</p></html> |
| 108 |
__W__ |
| 109 |
p1 |
| 110 |
|
| 111 |
p2 |
| 112 |
__NEXT__ |
| 113 |
lists |
| 114 |
__H__ |
| 115 |
<html><ul><li>1</li><li>2</li></ul></html> |
| 116 |
__W__ |
| 117 |
* 1 |
| 118 |
* 2 |
| 119 |
__NEXT__ |
| 120 |
nested lists |
| 121 |
__H__ |
| 122 |
<html><ul><li>1<ul><li>1a</li><li>1b</li></ul></li><li>2</li></ul> |
| 123 |
__W__ |
| 124 |
* 1 |
| 125 |
* 1a |
| 126 |
* 1b |
| 127 |
* 2 |
| 128 |
__NEXT__ |
| 129 |
nested lists (different types) |
| 130 |
__H__ |
| 131 |
<html><ul><li>1<ul><li>a<ol><li>i</li></ol></li><li>b</li></ul></li><li>2</li></ul></html> |
| 132 |
__W__ |
| 133 |
* 1 |
| 134 |
* a |
| 135 |
1. i |
| 136 |
* b |
| 137 |
* 2 |
| 138 |
__NEXT__ |
| 139 |
hr |
| 140 |
__H__ |
| 141 |
<html><hr /></html> |
| 142 |
__W__ |
| 143 |
---- |
| 144 |
__NEXT__ |
| 145 |
pre |
| 146 |
__H__ |
| 147 |
<html><pre>this |
| 148 |
is |
| 149 |
preformatted |
| 150 |
text</pre></html> |
| 151 |
__W__ |
| 152 |
{{{ |
| 153 |
this |
| 154 |
is |
| 155 |
preformatted |
| 156 |
text |
| 157 |
}}} |
| 158 |
__NEXT__ |
| 159 |
h1 |
| 160 |
__H__ |
| 161 |
<h1>h1</h1> |
| 162 |
__W__ |
| 163 |
= h1 = |
| 164 |
__NEXT__ |
| 165 |
h2 |
| 166 |
__H__ |
| 167 |
<h2>h2</h2> |
| 168 |
__W__ |
| 169 |
== h2 == |
| 170 |
__NEXT__ |
| 171 |
h3 |
| 172 |
__H__ |
| 173 |
<h3>h3</h3> |
| 174 |
__W__ |
| 175 |
=== h3 === |
| 176 |
__NEXT__ |
| 177 |
h4 |
| 178 |
__H__ |
| 179 |
<h4>h4</h4> |
| 180 |
__W__ |
| 181 |
==== h4 ==== |
| 182 |
__NEXT__ |
| 183 |
h5 |
| 184 |
__H__ |
| 185 |
<h5>h5</h5> |
| 186 |
__W__ |
| 187 |
===== h5 ===== |
| 188 |
__NEXT__ |
| 189 |
h6 |
| 190 |
__H__ |
| 191 |
<h6>h6</h6> |
| 192 |
__W__ |
| 193 |
====== h6 ====== |
| 194 |
__NEXT__ |
| 195 |
img |
| 196 |
__H__ |
| 197 |
<html><img src="thing.gif" /></html> |
| 198 |
__W__ |
| 199 |
http://www.test.com/thing.gif |
| 200 |
__NEXT__ |
| 201 |
external links |
| 202 |
__H__ |
| 203 |
<html><a href="test.html">thing</a></html> |
| 204 |
__W__ |
| 205 |
[[http://www.test.com/test.html|thing]] |
| 206 |
__NEXT__ |
| 207 |
external link (plain) |
| 208 |
__H__ |
| 209 |
<html><a href="http://www.test.com">http://www.test.com</a></html> |
| 210 |
__W__ |
| 211 |
http://www.test.com |
| 212 |
__NEXT__ |
| 213 |
definition list |
| 214 |
__H__ |
| 215 |
<html><dl><dt>cookies</dt><dd>delicious delicacies</dd></dl></html> |
| 216 |
__W__ |
| 217 |
cookies:: delicious delicacies |
| 218 |
__NEXT__ |
| 219 |
simple table |
| 220 |
__H__ |
| 221 |
<html><table><tr><td>name</td><td>david</td></tr></table> |
| 222 |
__W__ |
| 223 |
|| name || david || |
| 224 |
__NEXT__ |
| 225 |
table w/ attrs |
| 226 |
__H__ |
| 227 |
<html> |
| 228 |
<table bgcolor="white" width="100%"> |
| 229 |
<tr> |
| 230 |
<td colspan=2 id="thing">thing</td> |
| 231 |
</tr> |
| 232 |
<tr> |
| 233 |
<td>next</td> |
| 234 |
<td id="crazy">crazy</td> |
| 235 |
</tr> |
| 236 |
</table> |
| 237 |
</html> |
| 238 |
__W__ |
| •239 |
||<-2 tablestyle="background-color:white; width:100%" id="thing"> thing || |
| 240 |
|| next ||<id="crazy"> crazy || |
| 241 |
__NEXT__ |
| 242 |
anchors with content (bug #29347) ::enable_anchor_macro(1) |
| 243 |
__H__ |
| 244 |
<a id="top">This is the top of the page</a> |
| 245 |
__W__ |
| 246 |
<<Anchor(top)>> |
| 247 |
This is the top of the page |
| 248 |
__NEXT__ |
| 249 |
anchors (bug #17813) ::enable_anchor_macro(1) |
| 250 |
__H__ |
| 251 |
<a id="id-top" name="name-top"></a> |
| 252 |
|
| 253 |
<p><a href="#href-top">Top of page</a></p> |
| 254 |
__W__ |
| 255 |
<<Anchor(id-top)>> |
| 256 |
|
| 257 |
[[#href-top|Top of page]] |