[Jifty-commit] r3038 - in jifty/trunk: lib/Jifty/Test/WWW
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Mar 20 21:05:02 EDT 2007
Author: jesse
Date: Tue Mar 20 21:05:02 2007
New Revision: 3038
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Test/WWW/Mechanize.pm
Log:
r53747 at pinglin: jesse | 2007-03-20 21:04:44 -0400
* When you break an API, it breaks tests.
Modified: jifty/trunk/lib/Jifty/Test/WWW/Mechanize.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Test/WWW/Mechanize.pm (original)
+++ jifty/trunk/lib/Jifty/Test/WWW/Mechanize.pm Tue Mar 20 21:05:02 2007
@@ -387,29 +387,14 @@
=head2 submit_html_ok
-With no arguments, this method calls L<WWW::Mechanize/submit>.
-
- $mech->submit_html_ok();
-
-With arguments, it calls L<WWW::Mechanize/click_button> and passes all arguments to it.
-
- $mech->submit_html_ok( value => 'Save' );
-
-In both cases, this call is followed by testing the HTML using
+Calls C<submit>, followed by testing the HTML using
L<Test::HTML::Lint>.
=cut
sub submit_html_ok {
my $self = shift;
-
- if (@_) {
- $self->click_button(@_);
- }
- else {
- $self->submit;
- }
-
+ $self->submit(@_);
{
local $Test::Builder::Level = $Test::Builder::Level;
$Test::Builder::Level++;
More information about the Jifty-commit
mailing list