2 use File::Spec::Functions ':ALL';
3 @INC = map { rel2abs($_) }
4 (qw| ./lib ./t/lib ../../lib |);
10 use Testing qw( setup_testing_dir xconvert );
12 use Pod::Html::Util qw(
18 END { chdir($startdir) or die("Cannot change back to $startdir: $!"); }
19 my ($expect_raw, $args);
20 { local $/; $expect_raw = <DATA>; }
22 my $tdir = setup_testing_dir( {
26 my $cwd = unixify(cwd());
29 podstub => "crossref",
30 description => "cross references",
31 expect => $expect_raw,
33 podpath => 't:corpus/test.lib',
45 <?xml version="1.0" ?>
46 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
47 <html xmlns="http://www.w3.org/1999/xhtml">
49 <title>htmlcrossref - Test HTML cross reference links</title>
50 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
51 <link rev="made" href="mailto:[PERLADMIN]" />
59 <li><a href="#NAME">NAME</a></li>
60 <li><a href="#LINKS">LINKS</a></li>
61 <li><a href="#TARGETS">TARGETS</a>
63 <li><a href="#section1">section1</a></li>
68 <h1 id="NAME">NAME</h1>
70 <p>htmlcrossref - Test HTML cross reference links</p>
72 <h1 id="LINKS">LINKS</h1>
74 <p><a href="#section1">"section1"</a></p>
76 <p><a href="./htmllink.html#section-2">"section 2" in htmllink</a></p>
78 <p><a href="#item1">"item1"</a></p>
80 <p><a href="#non-existent-section">"non existent section"</a></p>
82 <p><a href="../corpus/test.lib/var-copy.html">var-copy</a></p>
84 <p><a href="../corpus/test.lib/var-copy.html#pod">"$"" in var-copy</a></p>
86 <p><code>var-copy</code></p>
88 <p><code>var-copy/$"</code></p>
90 <p><a href="../corpus/test.lib/podspec-copy.html#First">"First:" in podspec-copy</a></p>
92 <p><code>podspec-copy/First:</code></p>
94 <p><a>notperldoc</a></p>
96 <h1 id="TARGETS">TARGETS</h1>
98 <h2 id="section1">section1</h2>
100 <p>This is section one.</p>
104 <dt id="item1">item1 </dt>
107 <p>This is item one.</p>