From: Steve Peters Date: Wed, 26 Jul 2006 13:54:28 +0000 (+0000) Subject: Added tests from CGI.pm that had not been integrated into core. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9ae4231fec23eab01ed1d777fb74f1070512d4d7;p=p5sagit%2Fp5-mst-13.2.git Added tests from CGI.pm that had not been integrated into core. p4raw-id: //depot/perl@28619 --- diff --git a/MANIFEST b/MANIFEST index 0742b2d..033e516 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1536,6 +1536,9 @@ lib/CGI/t/no_tabindex.t See if CGI.pm works lib/CGI/t/pretty.t See if CGI.pm works lib/CGI/t/push.t See if CGI::Push works lib/CGI/t/request.t See if CGI.pm works +lib/CGI/t/start_end_asterisk.t See if CGI.pm works +lib/CGI/t/start_end_end.t See if CGI.pm works +lib/CGI/t/start_end_start.t See if CGI.pm works lib/CGI/t/switch.t See if CGI::Switch still loads lib/CGI/t/util-58.t See if 5.8-dependent features work lib/CGI/t/util.t See if CGI.pm works diff --git a/lib/CGI/t/start_end_asterisk.t b/lib/CGI/t/start_end_asterisk.t new file mode 100644 index 0000000..0d67c9d --- /dev/null +++ b/lib/CGI/t/start_end_asterisk.t @@ -0,0 +1,72 @@ +#!/usr/local/bin/perl -w + +use lib qw(t/lib); +use strict; + +# Due to a bug in older versions of MakeMaker & Test::Harness, we must +# ensure the blib's are in @INC, else we might use the core CGI.pm +use lib qw(blib/lib blib/arch); +use Test::More tests => 45; + +use CGI qw(:standard *h1 *h2 *h3 *h4 *h5 *h6 *table *ul *li *ol *td *b *i *u *div); + +is(start_h1(), "

", "start_h1"); # TEST +is(start_h1({class => 'hello'}), "

", "start_h1 with param"); # TEST +is(end_h1(), "

", "end_h1"); # TEST + +is(start_h2(), "

", "start_h2"); # TEST +is(start_h2({class => 'hello'}), "

", "start_h2 with param"); # TEST +is(end_h2(), "

", "end_h2"); # TEST + +is(start_h3(), "

", "start_h3"); # TEST +is(start_h3({class => 'hello'}), "

", "start_h3 with param"); # TEST +is(end_h3(), "

", "end_h3"); # TEST + +is(start_h4(), "

", "start_h4"); # TEST +is(start_h4({class => 'hello'}), "

", "start_h4 with param"); # TEST +is(end_h4(), "

", "end_h4"); # TEST + +is(start_h5(), "
", "start_h5"); # TEST +is(start_h5({class => 'hello'}), "
", "start_h5 with param"); # TEST +is(end_h5(), "
", "end_h5"); # TEST + +is(start_h6(), "
", "start_h6"); # TEST +is(start_h6({class => 'hello'}), "
", "start_h6 with param"); # TEST +is(end_h6(), "
", "end_h6"); # TEST + +is(start_table(), "", "start_table"); # TEST +is(start_table({class => 'hello'}), "
", "start_table with param"); # TEST +is(end_table(), "
", "end_table"); # TEST + +is(start_ul(), "