| 1 |
local $/; |
| 2 |
require 't/runtests.pl'; |
| 3 |
runtests( data => <DATA>, dialect => 'WakkaWiki' ); |
| 4 |
close DATA; |
| 5 |
|
| 6 |
__DATA__ |
| 7 |
h1 |
| 8 |
__H__ |
| 9 |
<h1>one</h1> |
| 10 |
__W__ |
| 11 |
====== one ====== |
| 12 |
__NEXT__ |
| 13 |
h2 |
| 14 |
__H__ |
| 15 |
<h2>two</h2> |
| 16 |
__W__ |
| 17 |
===== two ===== |
| 18 |
__NEXT__ |
| 19 |
h3 |
| 20 |
__H__ |
| 21 |
<h3>three</h3> |
| 22 |
__W__ |
| 23 |
==== three ==== |
| 24 |
__NEXT__ |
| 25 |
h4 |
| 26 |
__H__ |
| 27 |
<h4>four</h4> |
| 28 |
__W__ |
| 29 |
=== four === |
| 30 |
__NEXT__ |
| 31 |
h5 |
| 32 |
__H__ |
| 33 |
<h5>five</h5> |
| 34 |
__W__ |
| 35 |
== five == |
| 36 |
__NEXT__ |
| 37 |
h6 |
| 38 |
__H__ |
| 39 |
<h6>six</h6> |
| 40 |
__W__ |
| 41 |
== six == |
| 42 |
__NEXT__ |
| 43 |
bold |
| 44 |
__H__ |
| 45 |
<b>bold text</b> |
| 46 |
__W__ |
| 47 |
**bold text** |
| 48 |
__NEXT__ |
| 49 |
strong |
| 50 |
__H__ |
| 51 |
<strong>strong text</strong> |
| 52 |
__W__ |
| 53 |
**strong text** |
| 54 |
__NEXT__ |
| 55 |
italic |
| 56 |
__H__ |
| 57 |
<i>italic text</i> |
| 58 |
__W__ |
| 59 |
//italic text// |
| 60 |
__NEXT__ |
| 61 |
emphasized |
| 62 |
__H__ |
| 63 |
<em>em text</em> |
| 64 |
__W__ |
| 65 |
//em text// |
| 66 |
__NEXT__ |
| 67 |
ul |
| 68 |
__H__ |
| 69 |
<ul> |
| 70 |
<li>one |
| 71 |
<li>two |
| 72 |
<li>three |
| 73 |
</ul> |
| 74 |
__W__ |
| 75 |
- one |
| 76 |
- two |
| 77 |
- three |
| 78 |
__NEXT__ |
| 79 |
ol |
| 80 |
__H__ |
| 81 |
<ol> |
| 82 |
<li>one |
| 83 |
<li>two |
| 84 |
<li>three |
| 85 |
</ol> |
| 86 |
__W__ |
| 87 |
1) one |
| 88 |
2) two |
| 89 |
3) three |
| 90 |
__NEXT__ |
| 91 |
nested list |
| 92 |
__H__ |
| 93 |
<ul> |
| 94 |
<li> one |
| 95 |
<ol> <li>1 <li>2 <li>3 </ol> |
| 96 |
</li> |
| 97 |
<li> two |
| 98 |
<ol> <li>1 <li>2 <li>3 </ol> |
| 99 |
</li> |
| 100 |
<li>three |
| 101 |
</ul> |
| 102 |
__W__ |
| 103 |
- one |
| 104 |
1) 1 |
| 105 |
2) 2 |
| 106 |
3) 3 |
| 107 |
- two |
| 108 |
1) 1 |
| 109 |
2) 2 |
| 110 |
3) 3 |
| 111 |
- three |
| 112 |
__NEXT__ |
| 113 |
image |
| 114 |
__H__ |
| 115 |
<img src="http://www.test.com/image.png" /> |
| 116 |
__W__ |
| 117 |
""<img src="http://www.test.com/image.png" />"" |
| 118 |
__NEXT__ |
| 119 |
image (w/ attrs) |
| 120 |
__H__ |
| 121 |
<img src="http://www.test.com/image.png" alt="my image" width="50" height="45" /> |
| 122 |
__W__ |
| 123 |
""<img src="http://www.test.com/image.png" alt="my image" width="50" height="45" />"" |
| 124 |
__NEXT__ |
| 125 |
image (strip attrs) |
| 126 |
__H__ |
| 127 |
<img src="http://www.test.com/image.png" alt="my image" width="50" height="45" onclick="alert('hello')" /> |
| 128 |
__W__ |
| 129 |
""<img src="http://www.test.com/image.png" alt="my image" width="50" height="45" />"" |
| 130 |
__NEXT__ |
| 131 |
image (escape attrs) |
| 132 |
__H__ |
| 133 |
<img src="http://www.test.com/image.png" alt="my < thing" /> |
| 134 |
__W__ |
| 135 |
""<img src="http://www.test.com/image.png" alt="my < thing" />"" |