This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move Pod::Html from lib/ to ext/
[perl5.git] / ext / Pod-Html / t / htmlview.t
1 #!/usr/bin/perl -w                                         # -*- perl -*-
2
3 BEGIN {
4     require "t/pod2html-lib.pl";
5 }
6
7 use strict;
8 use Test::More tests => 1;
9
10 convert_n_test("htmlview", "html rendering");
11
12 __DATA__
13 <?xml version="1.0" ?>
14 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
15 <html xmlns="http://www.w3.org/1999/xhtml">
16 <head>
17 <title>NAME</title>
18 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
19 <link rev="made" href="mailto:[PERLADMIN]" />
20 </head>
21
22 <body style="background-color: white">
23
24
25 <!-- INDEX BEGIN -->
26 <div name="index">
27 <p><a name="__index__"></a></p>
28
29 <ul>
30
31         <li><a href="#name">NAME</a></li>
32         <li><a href="#synopsis">SYNOPSIS</a></li>
33         <li><a href="#description">DESCRIPTION</a></li>
34         <li><a href="#methods____other_stuff">METHODS =&gt; OTHER STUFF</a></li>
35         <ul>
36
37                 <li><a href="#new__"><code>new()</code></a></li>
38                 <li><a href="#old__"><code>old()</code></a></li>
39         </ul>
40
41         <li><a href="#testing_for_and_begin">TESTING FOR AND BEGIN</a></li>
42         <li><a href="#testing_urls_hyperlinking">TESTING URLs hyperlinking</a></li>
43         <li><a href="#see_also">SEE ALSO</a></li>
44 </ul>
45
46 <hr name="index" />
47 </div>
48 <!-- INDEX END -->
49
50 <p>
51 </p>
52 <h1><a name="name">NAME</a></h1>
53 <p>Test HTML Rendering</p>
54 <p>
55 </p>
56 <hr />
57 <h1><a name="synopsis">SYNOPSIS</a></h1>
58 <pre>
59     use My::Module;</pre>
60 <pre>
61     my $module = My::Module-&gt;new();</pre>
62 <p>
63 </p>
64 <hr />
65 <h1><a name="description">DESCRIPTION</a></h1>
66 <p>This is the description.</p>
67 <pre>
68     Here is a verbatim section.</pre>
69 <p>This is some more regular text.</p>
70 <p>Here is some <strong>bold</strong> text, some <em>italic</em> and something that looks 
71 like an &lt;html&gt; tag.  This is some <code>$code($arg1)</code>.</p>
72 <p>This <code>text contains embedded bold and italic tags</code>.  These can 
73 be nested, allowing <strong>bold and <em>bold &amp; italic</em> text</strong>.  The module also
74 supports the extended <strong>syntax </strong>&gt; and permits <em>nested tags &amp;
75 other <strong>cool </strong></em>&gt; stuff &gt;&gt;</p>
76 <p>
77 </p>
78 <hr />
79 <h1><a name="methods____other_stuff">METHODS =&gt; OTHER STUFF</a></h1>
80 <p>Here is a list of methods</p>
81 <p>
82 </p>
83 <h2><a name="new__"><code>new()</code></a></h2>
84 <p>Constructor method.  Accepts the following config options:</p>
85 <dl>
86 <dt><strong><a name="foo" class="item">foo</a></strong></dt>
87
88 <dd>
89 <p>The foo item.</p>
90 </dd>
91 <dt><strong><a name="bar" class="item">bar</a></strong></dt>
92
93 <dd>
94 <p>The bar item.</p>
95 <p>This is a list within a list</p>
96 <ul>
97 <li>
98 <p>The wiz item.</p>
99 </li>
100 <li>
101 <p>The waz item.</p>
102 </li>
103 </ul>
104 </dd>
105 <dt><strong><a name="baz" class="item">baz</a></strong></dt>
106
107 <dd>
108 <p>The baz item.</p>
109 </dd>
110 </dl>
111 <p>Title on the same line as the =item + * bullets</p>
112 <ul>
113 <li><strong><a name="black_cat" class="item"><code>Black</code> Cat</a></strong>
114
115 </li>
116 <li><strong><a name="sat_on_the" class="item">Sat <em>on</em>&nbsp;the</a></strong>
117
118 </li>
119 <li><strong><a name="mat" class="item">Mat&lt;!&gt;</a></strong>
120
121 </li>
122 </ul>
123 <p>Title on the same line as the =item + numerical bullets</p>
124 <ol>
125 <li><strong><a name="cat" class="item">Cat</a></strong>
126
127 </li>
128 <li><strong><a name="sat" class="item">Sat</a></strong>
129
130 </li>
131 <li><strong><a name="mat2" class="item">Mat</a></strong>
132
133 </li>
134 </ol>
135 <p>No bullets, no title</p>
136 <dl>
137 <dt>
138 <dd>
139 <p>Cat</p>
140 </dd>
141 <dt>
142 <dd>
143 <p>Sat</p>
144 </dd>
145 <dt>
146 <dd>
147 <p>Mat</p>
148 </dd>
149 </dl>
150 <p>
151 </p>
152 <h2><a name="old__"><code>old()</code></a></h2>
153 <p>Destructor method</p>
154 <p>
155 </p>
156 <hr />
157 <h1><a name="testing_for_and_begin">TESTING FOR AND BEGIN</a></h1>
158 <br />
159 <p>
160 blah blah
161 </p><p>intermediate text</p>
162 <more>
163 HTML
164 </more>some text<p>
165 </p>
166 <hr />
167 <h1><a name="testing_urls_hyperlinking">TESTING URLs hyperlinking</a></h1>
168 <p>This is an href link1: <a href="http://example.com">http://example.com</a></p>
169 <p>This is an href link2: <a href="http://example.com/foo/bar.html">http://example.com/foo/bar.html</a></p>
170 <p>This is an email link: <a href="mailto:mailto:foo@bar.com">mailto:foo@bar.com</a></p>
171 <pre>
172     This is a link in a verbatim block &lt;a href=&quot;<a href="http://perl.org">http://perl.org</a>&quot;&gt; Perl &lt;/a&gt;</pre>
173 <p>
174 </p>
175 <hr />
176 <h1><a name="see_also">SEE ALSO</a></h1>
177 <p>See also <a href="/t/htmlescp.html">Test Page 2</a>, the <a href="/Your/Module.html">the Your::Module manpage</a> and <a href="/Their/Module.html">the Their::Module manpage</a>
178 manpages and the other interesting file <em class="file">/usr/local/my/module/rocks</em>
179 as well.</p>
180
181 </body>
182
183 </html>