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