summaryrefslogtreecommitdiff
path: root/t/04-doc-OpenOffice.t
diff options
context:
space:
mode:
Diffstat (limited to 't/04-doc-OpenOffice.t')
-rw-r--r--t/04-doc-OpenOffice.t21
1 files changed, 21 insertions, 0 deletions
diff --git a/t/04-doc-OpenOffice.t b/t/04-doc-OpenOffice.t
new file mode 100644
index 0000000..489bff7
--- /dev/null
+++ b/t/04-doc-OpenOffice.t
@@ -0,0 +1,21 @@
+#!perl
+
+BEGIN { chomp($pwd=`pwd`); $ENV{PATH} .= ":$pwd/bin"; };
+
+use Test::More tests => 2;
+
+use HTML::AutoConvert;
+
+my $c = new HTML::AutoConvert;
+
+my $force = 'OpenOffice';
+#$c->{'handlers'}{'doc'}{$force}{'weight'} = -1;
+my @del = grep { $_ ne $force } keys %{ $c->{'handlers'}{'doc'} };
+delete($c->{'handlers'}{'doc'}{$_}) foreach @del;
+
+my $html = $c->html_convert('t/DiaryofaKillerCat.doc');
+
+#match $html against something;
+like( $html, qr/Chunky/, 'text is Chunky' );
+like( $html, qr/Monkey/, 'text has Monkey' );
+