debian/0000755000000000000000000000000012154713766007202 5ustar debian/rules0000755000000000000000000000043512154713766010264 0ustar #!/usr/bin/make -f PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_test: http_proxy= dh_auto_test override_dh_installexamples: dh_installexamples sed -i '1s|^#!perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/* debian/control0000644000000000000000000000313712154713766010611 0ustar Source: libtest-www-declare-perl Maintainer: Debian Perl Group Uploaders: AGOSTINI Yves , Rene Mayorga , gregor herrmann Section: perl Priority: optional Build-Depends: debhelper (>= 8), perl Build-Depends-Indep: libhttp-server-simple-perl, libtest-tester-perl, libtest-www-mechanize-perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libtest-www-declare-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libtest-www-declare-perl.git Homepage: https://metacpan.org/release/Test-WWW-Declare/ Package: libtest-www-declare-perl Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, libtest-www-mechanize-perl Description: declarative testing module for web apps Often in web apps, tests are very dependent on the state set up by previous tests. If one test fails (e.g. "follow the link to the admin page") then it's likely there will be many more failures. Test::WWW::Declare aims to alleviate this problem, as well as provide a nicer interface to Test::WWW::Mechanize. . The central idea is that of "flow". Each flow is a sequence of commands ("fill in this form") and assertions ("content should contain 'testuser'"). If any of these commands or assertions fail then the flow is aborted. Only that one failure is reported to the test harness and user. Flows may also contain other flows. If an inner flow fails, then the outer flow fails as well. debian/source/0000755000000000000000000000000012154713766010502 5ustar debian/source/format0000644000000000000000000000001412154713766011710 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000456412154713766011065 0ustar libtest-www-declare-perl (0.02-3) unstable; urgency=low [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ gregor herrmann ] * Patch t/11-nested-flow-error.t to work with Carp 1.25. (Closes: #711618) * debian/copyright: switch formatting to Copyright-Format 1.0. * Update years of packaging copyright. * Set Standards-Version to 3.9.4 (no further changes). -- gregor herrmann Sat, 08 Jun 2013 22:45:20 +0200 libtest-www-declare-perl (0.02-2) unstable; urgency=medium [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * Use tiny debian/rules, and unset http_proxy for tests. * Switch to source format 3.0 (quilt). * Add patch perl_re.patch to handle changes in regexp stringification in perl 5.14. (Closes: #636271) * Switch to debhelper compatibility level 8. * Set Standards-Version to 3.9.2. remove version from perl build dependency. * Add /me to Uploaders. * debian/copyright: update formatting. * Fix hashbang in example script. * Set urgency to medium (RC bug, perl 5.14 transition). -- gregor herrmann Wed, 16 Nov 2011 00:07:07 +0100 libtest-www-declare-perl (0.02-1) unstable; urgency=low [ Rene Mayorga ] * New upstream release * raise debhelper and compat level to 7 * debian/control + Set Standards-Version to 3.8.0 (no changes needed) + refer to module name at long description + Move perl from B-D-I to B-D + add myself to uploaders * debian/rules - use dh7 with the help of dh-make-perl -R * debian/copyright + refresh upstream's copyright year + Add copyright info about included Module::Install + update proposal format [ gregor herrmann ] * Make build dependency on libhttp-server-simple-perl versioned. * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). -- Rene Mayorga Wed, 21 Jan 2009 17:30:33 -0600 libtest-www-declare-perl (0.01-1) unstable; urgency=low * Initial Release (Closes: #477499) -- AGOSTINI Yves Wed, 23 Apr 2008 15:21:16 +0200 debian/libtest-www-declare-perl.examples0000644000000000000000000000002512154713766015564 0ustar doc/fancy-sessions.t debian/compat0000644000000000000000000000000212154713766010400 0ustar 8 debian/patches/0000755000000000000000000000000012154713766010631 5ustar debian/patches/carp.patch0000644000000000000000000000176712154713766012612 0ustar Description: fix test failure with Carp 1.25 Origin: vendor Bug-Debian: http://bugs.debian.org/711618 Bug: https://rt.cpan.org/Ticket/Display.html?id=85997 Forwarded: https://rt.cpan.org/Ticket/Display.html?id=85997 Author: gregor herrmann Last-Update: 2013-06-08 --- a/t/11-nested-flow-error.t +++ b/t/11-nested-flow-error.t @@ -38,6 +38,8 @@ # perldelta 5.14, "Stringification of regexes has changed" my $modifiers = (qr/foobar/ =~ /\Q(?^/) ? "^" : "-xism"; +# Carp 1.25 adds a full stop at the end +my $fullstop = ($Carp::VERSION >= 1.25) ? "." : ""; -is($results[1]{diag}, "Flow 'visit good' failed: No link matching (?$modifiers:AAHHH!!!) found at t/11-nested-flow-error.t line 16\n", 'nested flow failing only reports once, and gives the right line number'); +is($results[1]{diag}, "Flow 'visit good' failed: No link matching (?$modifiers:AAHHH!!!) found at t/11-nested-flow-error.t line 16$fullstop\n", 'nested flow failing only reports once, and gives the right line number'); debian/patches/perl_re.patch0000644000000000000000000000375212154713766013311 0ustar Description: Stringification of regexps has changed, cf. perldelta 5.14 Origin: vendor Bug: https://rt.cpan.org/Ticket/Display.html?id=68186 Bug-Debian: http://bugs.debian.org/636271 Forwarded: https://rt.cpan.org/Ticket/Display.html?id=68186 Author: gregor herrmann Last-Update: 2011-11-15 --- a/t/11-nested-flow-error.t +++ b/t/11-nested-flow-error.t @@ -36,5 +36,8 @@ is($results[0]{diag}, '', 'no errors/warnings'); -is($results[1]{diag}, "Flow 'visit good' failed: No link matching (?-xism:AAHHH!!!) found at t/11-nested-flow-error.t line 16\n", 'nested flow failing only reports once, and gives the right line number'); +# perldelta 5.14, "Stringification of regexes has changed" +my $modifiers = (qr/foobar/ =~ /\Q(?^/) ? "^" : "-xism"; + +is($results[1]{diag}, "Flow 'visit good' failed: No link matching (?$modifiers:AAHHH!!!) found at t/11-nested-flow-error.t line 16\n", 'nested flow failing only reports once, and gives the right line number'); --- a/t/13-flowless.t +++ b/t/13-flowless.t @@ -27,8 +27,12 @@ is($results[2]{diag}, '', 'no warnings/errors'); is($results[3]{diag}, '', 'no warnings/errors'); +# perldelta 5.14, "Stringification of regexes has changed" +my $modifiers1 = (qr/foobar/ =~ /\Q(?^/) ? "^" : "-xism"; +my $modifiers2 = (qr/foobar/ =~ /\Q(?^/) ? "^i" : "i-xsm"; + is($results[0]{name}, "navigated to http://localhost:$PORT/", "test name was correct"); -is($results[1]{name}, "Content does not match (?-xism:This is an index)", "test name was correct"); -is($results[2]{name}, "Clicked link matching (?-xism:good)", "test name was correct"); -is($results[3]{name}, "Content does not match (?i-xsm:This is a good page)", "test name was correct"); +is($results[1]{name}, "Content does not match (?$modifiers1:This is an index)", "test name was correct"); +is($results[2]{name}, "Clicked link matching (?$modifiers1:good)", "test name was correct"); +is($results[3]{name}, "Content does not match (?$modifiers2:This is a good page)", "test name was correct"); debian/patches/series0000644000000000000000000000003112154713766012040 0ustar perl_re.patch carp.patch debian/copyright0000644000000000000000000000253712154713766011144 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Test-WWW-Declare Upstream-Contact: Shawn M Moore Source: https://metacpan.org/release/Test-WWW-Declare/ Files: * Copyright: 2007-2008, Best Practical Solutions, LLC License: Artistic or GPL-1+ Files: inc/Module/* Copyright: 2002-2011, Adam Kennedy 2002-2011, Audrey Tang 2002-2011, Brian Ingerson License: Artistic or GPL-1+ Files: debian/* Copyright: 2008, AGOSTINI Yves 2009, Nathan Handler 2009, Rene Mayorga 2011-2013, gregor herrmann License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/watch0000644000000000000000000000017612154713766010237 0ustar version=3 https://metacpan.org/release/Test-WWW-Declare/ .*/Test-WWW-Declare-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$