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