summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/ekhtml/testsuite/plparser.pl
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-19 22:15:58 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-19 22:15:58 +0000
commit77d2929512ff62e421e9bfee659cc86973fc7df7 (patch)
treeeaeaee2b6f7ef7498cc5aa12b340b11cb125638b /plugins/MirOTR/ekhtml/testsuite/plparser.pl
parent665935b0f99a4b9585f9afe9c9730931a3c94f85 (diff)
files structure reorganization
git-svn-id: http://svn.miranda-ng.org/main/trunk@492 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/ekhtml/testsuite/plparser.pl')
-rw-r--r--plugins/MirOTR/ekhtml/testsuite/plparser.pl38
1 files changed, 0 insertions, 38 deletions
diff --git a/plugins/MirOTR/ekhtml/testsuite/plparser.pl b/plugins/MirOTR/ekhtml/testsuite/plparser.pl
deleted file mode 100644
index f7ee4a150b..0000000000
--- a/plugins/MirOTR/ekhtml/testsuite/plparser.pl
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/perl
-use HTML::Parser();
-use strict;
-sub start_handler
-{
- my ($tag, $self) = @_;
- print "START: \"".$tag."\"\n";
-}
-
-sub end_handler
-{
- my ($tag, $self) = @_;
- print "END: \"".$tag."\"\n";
-}
-
-sub text_handler
-{
- my ($text, $self) = @_;
- print $text;
-}
-
-sub comment_handler
-{
- my ($text, $self) = @_;
- print "COMMENT: \"";
- foreach my $cur_comment (@$text) {
- print $cur_comment;
- }
- print "\"\n";
-}
-
-my $p = HTML::Parser->new(api_version => 3);
-$p->handler( start => \&start_handler, "tagname,self");
-$p->handler( end => \&end_handler, "tagname,self");
-$p->handler( text => \&text_handler, "dtext, self");
-$p->handler( comment => \&comment_handler, "tokens, self");
-$p->parse_file(shift || die) || die $!;
-