r4746 - in /packages/libtest-www-mechanize-cgi-perl: ./ branches/
branches/upstream/ branches/upstream/current/
branches/upstream/current/lib/ branches/upstream/current/lib/Test/
branches/upstream/current/lib/Test/WWW/
branches/upstream/current/lib/Test/WWW/Mechanize/
branches/upstream/current/t/ tags/
jaldhar at users.alioth.debian.org
jaldhar at users.alioth.debian.org
Sun Jan 21 05:09:43 CET 2007
Author: jaldhar
Date: Sun Jan 21 05:09:43 2007
New Revision: 4746
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=4746
Log:
[svn-inject] Installing original source of libtest-www-mechanize-cgi-perl
Added:
packages/libtest-www-mechanize-cgi-perl/
packages/libtest-www-mechanize-cgi-perl/branches/
packages/libtest-www-mechanize-cgi-perl/branches/upstream/
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/Changes
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/MANIFEST
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/META.yml
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/Makefile.PL
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/README
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/lib/
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/lib/Test/
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/lib/Test/WWW/
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/lib/Test/WWW/Mechanize/
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/lib/Test/WWW/Mechanize/CGI.pm
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/t/
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/t/01use.t
packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/t/02basic.t
packages/libtest-www-mechanize-cgi-perl/tags/
Added: packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/Changes?rev=4746&op=file
==============================================================================
--- packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/Changes (added)
+++ packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/Changes Sun Jan 21 05:09:43 2007
@@ -1,0 +1,4 @@
+This file documents the revision history for Perl extension Test::WWW::Mechanize::CGI.
+
+0.1 2005-11-13 21:53:00 2005
+ - first release.
Added: packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/MANIFEST?rev=4746&op=file
==============================================================================
--- packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/MANIFEST (added)
+++ packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/MANIFEST Sun Jan 21 05:09:43 2007
@@ -1,0 +1,8 @@
+Changes
+lib/Test/WWW/Mechanize/CGI.pm
+Makefile.PL
+MANIFEST This list of files
+t/01use.t
+t/02basic.t
+META.yml Module meta-data (added by MakeMaker)
+README
Added: packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/META.yml?rev=4746&op=file
==============================================================================
--- packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/META.yml (added)
+++ packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/META.yml Sun Jan 21 05:09:43 2007
@@ -1,0 +1,13 @@
+# http://module-build.sourceforge.net/META-spec.html
+#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
+name: Test-WWW-Mechanize-CGI
+version: 0.1
+version_from: lib/Test/WWW/Mechanize/CGI.pm
+installdirs: site
+requires:
+ Test::More: 0
+ Test::WWW::Mechanize: 0
+ WWW::Mechanize::CGI: 0.2
+
+distribution_type: module
+generated_by: ExtUtils::MakeMaker version 6.17
Added: packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/Makefile.PL?rev=4746&op=file
==============================================================================
--- packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/Makefile.PL (added)
+++ packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/Makefile.PL Sun Jan 21 05:09:43 2007
@@ -1,0 +1,13 @@
+#!perl
+
+use ExtUtils::MakeMaker;
+
+WriteMakefile(
+ NAME => 'Test::WWW::Mechanize::CGI',
+ VERSION_FROM => 'lib/Test/WWW/Mechanize/CGI.pm',
+ PREREQ_PM => {
+ Test::More => 0,
+ Test::WWW::Mechanize => 0,
+ WWW::Mechanize::CGI => 0.2
+ }
+);
Added: packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/README?rev=4746&op=file
==============================================================================
--- packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/README (added)
+++ packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/README Sun Jan 21 05:09:43 2007
@@ -1,0 +1,42 @@
+NAME
+ Test::WWW::Mechanize::CGI - Test CGI applications with
+ Test::WWW::Mechanize
+
+SYNOPSIS
+ use Test::More tests => 3;
+
+ use CGI;
+ use Test::WWW::Mechanize::CGI;
+
+ my $mech = Test::WWW::Mechanize::CGI->new;
+ $mech->cgi( sub {
+
+ my $q = CGI->new;
+
+ print $q->header,
+ $q->start_html('Hello World'),
+ $q->h1('Hello World'),
+ $q->end_html;
+ });
+
+ $mech->get_ok('http://localhost/');
+ $mech->title_is('Hello World');
+ $mech->content_contains('Hello World');
+
+DESCRIPTION
+ Provides a convenient way of testing CGI applications without a external
+ daemon.
+
+SEE ALSO
+ WWW::Mechanize::CGI
+ WWW::Mechanize
+ LWP::UserAgent
+ HTTP::Request::AsCGI
+
+AUTHOR
+ Christian Hansen, "ch at ngmedia.com"
+
+LICENSE
+ This library is free software. You can redistribute it and/or modify it
+ under the same terms as perl itself.
+
Added: packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/lib/Test/WWW/Mechanize/CGI.pm
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/lib/Test/WWW/Mechanize/CGI.pm?rev=4746&op=file
==============================================================================
--- packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/lib/Test/WWW/Mechanize/CGI.pm (added)
+++ packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/lib/Test/WWW/Mechanize/CGI.pm Sun Jan 21 05:09:43 2007
@@ -1,0 +1,66 @@
+package Test::WWW::Mechanize::CGI;
+
+use strict;
+use warnings;
+use base qw[WWW::Mechanize::CGI Test::WWW::Mechanize];
+
+our $VERSION = 0.1;
+
+1;
+
+__END__
+
+=head1 NAME
+
+Test::WWW::Mechanize::CGI - Test CGI applications with Test::WWW::Mechanize
+
+=head1 SYNOPSIS
+
+ use Test::More tests => 3;
+
+ use CGI;
+ use Test::WWW::Mechanize::CGI;
+
+ my $mech = Test::WWW::Mechanize::CGI->new;
+ $mech->cgi( sub {
+
+ my $q = CGI->new;
+
+ print $q->header,
+ $q->start_html('Hello World'),
+ $q->h1('Hello World'),
+ $q->end_html;
+ });
+
+ $mech->get_ok('http://localhost/');
+ $mech->title_is('Hello World');
+ $mech->content_contains('Hello World');
+
+=head1 DESCRIPTION
+
+Provides a convenient way of testing CGI applications without a external daemon.
+
+=head1 SEE ALSO
+
+=over 4
+
+=item L<WWW::Mechanize::CGI>
+
+=item L<WWW::Mechanize>
+
+=item L<LWP::UserAgent>
+
+=item L<HTTP::Request::AsCGI>
+
+=back
+
+=head1 AUTHOR
+
+Christian Hansen, C<ch at ngmedia.com>
+
+=head1 LICENSE
+
+This library is free software. You can redistribute it and/or modify
+it under the same terms as perl itself.
+
+=cut
Added: packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/t/01use.t
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/t/01use.t?rev=4746&op=file
==============================================================================
--- packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/t/01use.t (added)
+++ packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/t/01use.t Sun Jan 21 05:09:43 2007
@@ -1,0 +1,8 @@
+#!perl
+
+use Test::More 'no_plan';
+
+use strict;
+use warnings;
+
+use_ok 'Test::WWW::Mechanize::CGI';
Added: packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/t/02basic.t
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/t/02basic.t?rev=4746&op=file
==============================================================================
--- packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/t/02basic.t (added)
+++ packages/libtest-www-mechanize-cgi-perl/branches/upstream/current/t/02basic.t Sun Jan 21 05:09:43 2007
@@ -1,0 +1,24 @@
+#!perl
+
+use strict;
+use warnings;
+
+use Test::More tests => 3;
+
+use CGI;
+use Test::WWW::Mechanize::CGI;
+
+my $mech = Test::WWW::Mechanize::CGI->new;
+$mech->cgi( sub {
+
+ my $q = CGI->new;
+
+ print $q->header,
+ $q->start_html('Hello World'),
+ $q->h1('Hello World'),
+ $q->end_html;
+});
+
+$mech->get_ok('http://localhost/');
+$mech->title_is('Hello World');
+$mech->content_contains('Hello World');
More information about the Pkg-perl-cvs-commits
mailing list