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