Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref #162 - back compatibility functions + test
in removing AUTOLOAD we need to check that the necessary back compat methods are still available to ensure no (or minimal) breakage. to do this t/html_functions.t has been added that both uses the -compile pragma and ->compile function and also checks a function (a()) is imported into the test's namespace. the test was run against the version of the module prior to the removal of AUTOLOAD and then the unnecessary functions were removed from the _all_html_tags() function in CGI.pm bump VERSION to dev release, document Changes
- Loading branch information
Showing
12 changed files
with
87 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
# that the filehandle object is a Fh | ||
package Fh; | ||
|
||
$Fh::VERSION = '4.13'; | ||
$Fh::VERSION = '4.13_01'; | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!perl | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Test::More 'no_plan'; | ||
|
||
use CGI qw/ -compile :all /; | ||
|
||
# check html functions are imported into this namespace | ||
# with the -compile pragma | ||
is( a({ bar => "boz" }),"<a bar=\"boz\" />","-compile" ); | ||
|
||
my $q = CGI->new; | ||
|
||
foreach my $tag ( $q->_all_html_tags ) { | ||
|
||
is( $q->$tag( { bar => 'boz' } ),"<$tag bar=\"boz\" />","$tag function" ); | ||
|
||
my $start = "start_$tag"; | ||
is( $q->$start( 'foo' ),"<$tag>","$start function" ); | ||
|
||
my $end = "end_$tag"; | ||
is( $q->$end( 'foo' ),"</$tag>","$end function" ); | ||
} | ||
|
||
ok( $q->compile,'compile' ); |