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