Add ARM files
[dh-make-perl] / dev / arm / libhtml-parser-perl / libhtml-parser-perl-3.56 / t / headparser-http.t
diff --git a/dev/arm/libhtml-parser-perl/libhtml-parser-perl-3.56/t/headparser-http.t b/dev/arm/libhtml-parser-perl/libhtml-parser-perl-3.56/t/headparser-http.t
new file mode 100644 (file)
index 0000000..b722c64
--- /dev/null
@@ -0,0 +1,20 @@
+use Test::More tests => 1;
+
+eval {
+   require HTML::HeadParser;
+   $p = HTML::HeadParser->new;
+};
+
+SKIP: {
+skip $@, 1 if $@ =~ /^Can't locate HTTP/;
+
+$p = HTML::HeadParser->new($h);
+$p->parse(<<EOT);
+<title>Stupid example</title>
+<base href="http://www.sn.no/libwww-perl/">
+Normal text starts here.
+EOT
+$h = $p->header;
+undef $p;
+is($h->title, "Stupid example");
+}