2 use File::Spec::Functions ':ALL';
3 @INC = map { rel2abs($_) }
4 (qw| ./lib ./t/lib ../../lib |);
10 use Testing qw( setup_testing_dir xconvert );
15 END { chdir($startdir) or die("Cannot change back to $startdir: $!"); }
16 my ($expect_raw, $args);
17 { local $/; $expect_raw = <DATA>; }
19 my $tdir = setup_testing_dir( {
24 podstub => "htmldir2",
25 description => "test --htmldir and --htmlroot 2a",
26 expect => $expect_raw,
37 podstub => "htmldir2",
38 description => "test --htmldir and --htmlroot 2b",
39 expect => $expect_raw,
50 podstub => "htmldir2",
51 description => "test --htmldir and --htmlroot 2c",
52 expect => $expect_raw,
56 norecurse => 1, # testing --norecurse, too
66 <?xml version="1.0" ?>
67 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
68 <html xmlns="http://www.w3.org/1999/xhtml">
70 <title>htmldir - Test --htmldir feature</title>
71 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
72 <link rev="made" href="mailto:[PERLADMIN]" />
80 <li><a href="#NAME">NAME</a></li>
81 <li><a href="#LINKS">LINKS</a></li>
84 <h1 id="NAME">NAME</h1>
86 <p>htmldir - Test --htmldir feature</p>
88 <h1 id="LINKS">LINKS</h1>
90 <p>Normal text, a <a>link</a> to nowhere,</p>
92 <p>a link to <a>perlvar-copy</a>,</p>
94 <p><a href="/t/htmlescp.html">htmlescp</a>,</p>
96 <p><a href="/t/feature.html#Another-Head-1">"Another Head 1" in feature</a>,</p>
98 <p>and another <a href="/t/feature.html#Another-Head-1">"Another Head 1" in feature</a>.</p>