debian/0002755000000000000000000000000011661255160007173 5ustar debian/compat0000644000000000000000000000000211661253263010371 0ustar 7 debian/rules0000755000000000000000000000003611661253254010252 0ustar #!/usr/bin/make -f %: dh $@ debian/source/0002755000000000000000000000000011661253216010473 5ustar debian/source/format0000644000000000000000000000001411661253216011677 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000026611661252313010223 0ustar version=3 # URL to the package page followed by a regex to search http://search.cpan.org/dist/Test-HTML-Content/ .*/Test-HTML-Content-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) debian/changelog0000644000000000000000000000234511661255160011047 0ustar libtest-html-content-perl (0.08-2) unstable; urgency=low * Add Vcs-* fields * Switch to dpkg-source 3.0 (quilt) format * Switch to minimal dh7 rules * Add patch fixing test failures with perl 5.14; thanks, gregor herrmann (closes: #636520) * Update Standards-Version (no changes) -- Dominic Hargreaves Thu, 17 Nov 2011 19:03:11 +0000 libtest-html-content-perl (0.08-1) unstable; urgency=low * New upstream release * Update Standards-Version (no changes) -- Dominic Hargreaves Mon, 23 Feb 2009 16:49:57 +0000 libtest-html-content-perl (0.07-3) unstable; urgency=low * Fix debian/rules rmdir bug (closes: #468024) * Update Standards-Version (no changes) * Standardize debian/watch format * debian/control: add Homepage field -- Dominic Hargreaves Sun, 2 Mar 2008 17:41:44 +0000 libtest-html-content-perl (0.07-2) unstable; urgency=low * Add copyright line to debian/copyright * Fix clean target to remove old Makefiles. -- Dominic Hargreaves Tue, 13 Jun 2006 14:06:41 +0100 libtest-html-content-perl (0.07-1) unstable; urgency=low * Initial Release (closes: #367240). -- Dominic Hargreaves Sun, 14 May 2006 18:25:06 +0000 debian/patches/0002755000000000000000000000000011661254551010625 5ustar debian/patches/perl-5.14-stringification0000600000000000000000000001036311661254551015262 0ustar Subject: Fix tests with perl 5.14 Author: gregor herrmann Bug-Debian: http://bugs.debian.org/636520 Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=70099 --- libtest-html-content-perl-0.08.orig/t/08-errors.comment.t +++ libtest-html-content-perl-0.08/t/08-errors.comment.t @@ -13,6 +13,10 @@ plan skip_all => "Test::Builder::Tester required for testing error messages"; } +# perldelta 5.14 +# Accept both old and new-style stringification +my $modifiers = (qr/foobar/ =~ /\Q(?^/) ? "^" : "-xism"; + sub run { # Test that each exported function fails as documented @@ -48,7 +52,7 @@ #} else { test_diag("Saw ''", "Saw ''", - "Expected no comment like '(?-xism:hidden m.ssage)'"); + "Expected no comment like '(?$modifiers:hidden m.ssage)'"); #}; no_comment("", qr"hidden m.ssage","Comment failure (two comments that shouldn't exist do)"); @@ -61,7 +65,7 @@ #} else { test_diag("Saw ''", "Saw ''", - "Expected exactly 3 comments like '(?-xism:hidden m.ssage)'"); + "Expected exactly 3 comments like '(?$modifiers:hidden m.ssage)'"); #}; comment_count("", qr"hidden m.ssage",3,"Comment failure (too few comments)"); @@ -74,7 +78,7 @@ #} else { test_diag("Saw ''", "Saw ''", - "Expected exactly 1 comments like '(?-xism:hidden m.ssage)'"); + "Expected exactly 1 comments like '(?$modifiers:hidden m.ssage)'"); #}; comment_count("", qr"hidden m.ssage",1,"Comment failure (too few comments)"); only in patch2: unchanged: --- libtest-html-content-perl-0.08.orig/t/07-errors.link.t +++ libtest-html-content-perl-0.08/t/07-errors.link.t @@ -14,6 +14,10 @@ } }; +# perldelta 5.14 +# Accept both old and new-style stringification +my $modifiers = (qr/foobar/ =~ /\Q(?^/) ? "^" : "-xism"; + sub run { # Test that each exported function fails as documented test_out("not ok 1 - Link failure (no links)"); @@ -51,13 +55,13 @@ test_fail(+14); if ($Test::HTML::Content::can_xpath eq 'XML::LibXML') { test_diag("Expected to find no tag(s) matching", - " href = (?-xism:.)", + " href = (?$modifiers:.)", "Got", ' foo', ' Home'); } else { test_diag("Expected to find no tag(s) matching", - " href = (?-xism:.)", + " href = (?$modifiers:.)", "Got", " ", " "); @@ -70,13 +74,13 @@ test_fail(+14); if ($Test::HTML::Content::can_xpath eq 'XML::LibXML') { test_diag("Expected to find exactly 3 tag(s) matching", - " href = (?-xism:.)", + " href = (?$modifiers:.)", "Got", ' foo', ' Home'); } else { test_diag("Expected to find exactly 3 tag(s) matching", - " href = (?-xism:.)", + " href = (?$modifiers:.)", "Got", " ", " "); @@ -88,7 +92,7 @@ test_fail(+18); if ($Test::HTML::Content::can_xpath eq 'XML::LibXML') { test_diag("Expected to find exactly 3 tag(s) matching", - " href = (?-xism:.)", + " href = (?$modifiers:.)", "Got", ' bar', ' .', @@ -96,7 +100,7 @@ ' Home'); } else { test_diag("Expected to find exactly 3 tag(s) matching", - " href = (?-xism:.)", + " href = (?$modifiers:.)", "Got", " ", " ", debian/patches/series0000644000000000000000000000003211661254054012031 0ustar perl-5.14-stringification debian/control0000644000000000000000000000243211661255130010572 0ustar Source: libtest-html-content-perl Section: perl Priority: optional Build-Depends: debhelper (>= 7) Build-Depends-Indep: perl (>= 5.8.0-7), libtest-pod-perl, libhtml-parser-perl, libtest-simple-perl, libxml-libxml-perl Maintainer: Dominic Hargreaves Standards-Version: 3.9.2 Homepage: http://search.cpan.org/dist/Test-HTML-Content/ Vcs-Git: git://anonscm.debian.org/users/dom/libtest-html-content-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/dom/libtest-html-content-perl.git Package: libtest-html-content-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, libhtml-parser-perl, libtest-simple-perl Recommends: libxml-libxml-perl Description: Perl extension for testing HTML output This is a module to test the HTML output of your programs in simple test scripts. It can test a scalar (presumably containing HTML) for the presence (or absence, or a specific number) of tags having (or lacking) specific attributes. Unspecified attributes are ignored, and the attribute values can be specified as either scalars (meaning a match succeeds if the strings are identical) or regular expressions (meaning that a match succeeds if the actual attribute value is matched by the given RE) or undef (meaning that the attribute must not be present). debian/copyright0000644000000000000000000000126311661252313011123 0ustar This is the debian package for the Test-HTML-Content module. It was created by Dominic Hargreaves using dh-make-perl. The source was downloaded from CPAN The upstream author is: Max Maischein . Copyright (C) 2002 Max Maischein, corion@cpan.org This code may be distributed under the same terms as Perl itself. Perl is distributed under your choice of the GNU General Public License or the Artistic License. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL' and the Artistic Licence in `/usr/share/common-licenses/Artistic'.