Revision history for Test-WWW-Mechanize
WWW::Mechanize and Test::WWW::Mechanize do not use rt.cpan.org for bug tracking. They are now being tracked via Google Code at http://code.google.com/p/www-mechanize/issues/list
No changes from 1.31_01.
[ENHANCEMENTS]
The methods that look at the text of the page, ->text_like() and
->text_unlike(), now use the WWW::Mechanize method ->text() which caches
the text. This will be a big speedup if you call these methods more
than once.
[FIXED]
Normalized the use of single vs. double quotes in the default descriptions.
Fixed tests that fail under newer versions of LWP.
Fixed tests that fail if http_proxy or HTTP_PROXY are set.
Fixed tests that fail on Perl 5.14.
[ENHANCEMENTS]
autolint used to only work on get_ok() calls. Now it works with
post_ok(), submit_form_ok(), follow_link_ok() and click_ok().
Added $mech->text_contains(), $mech->text_like() and $mech->text_unlike() methods. These check the text of an HTML page separate from the HTML markup. Thanks to Ashley Pond V.
[FIXED]
t/head_ok.t should no longer fail if your ISP "helpfully" returns
an IP address for non-existent DNS records. Thanks, Schwern.
[FIXED]
t/put_ok.t finally passes.
[FIXED]
Description of error in $mech->content_unlike() was wrong.
Now requires Test::LongString 0.12.
t/put_ok.t now passes, but with a handful of warnings. Help in figuring out why would be appreciated.
[INTERNALS]
Hoisted common code out of get_ok, post_ok, etc.
[DOCUMENTATION]
Updated copyright and licensing information.
Tests run on port 13432 instead of 8080. It should really be a random open port, but for now, something other than 8080 will do.
[FIXED]
Tests would fail because we weren't unsetting http_proxy.
Fixed many failed tests. Overhauled the test server setup.
[ENHANCEMENTS]
Added autolinting capability, so you can do this:
my $mech = Test::WWW::Mechanize->new( autolint => 1 ); $mech->get_ok( $url );
and the get_ok() will fail if the page is fetched, but the resultant HTML (if it is indeed text/html) does not pass HTML::Lint.
Added $mech->click_ok().
The user agent is now "Test-WWW-Mechanize/version" by default.
[ENHANCEMENTS]
Added $mech->head_ok() and $mech->put_ok() methods. Thanks to
Jaldhar Vyas.
[FIXES]
stuff_inputs() used to do nothing. Now it works.
http://code.google.com/p/www-mechanize/issues/detail?id=9
Fixed punctuation in some error messages.
Fixed compatibility with WWW::Mechanize 1.36.
[ENHANCEMENTS]
Added default descriptions for most test assertions.
[FIXES]
HTML::Lint is now properly optional.
Added delays in all the tests that use HTTP::Server::Simple to give it time to correctly fire up.
[ENHANCEMENTS]
Added $mech->post_ok(). Thanks, Greg Sheard.
Added $mech->submit_form_ok(). Thanks, Mark Stosberg.
Added $mech->html_lint_ok()
[FIXES]
Fixed some bugs that were causing test failures.
[FIXES]
Fixes test failures. Thanks to Mark Blackman for RT #26602:
The module tests currently spawn a server (based on HTTP::Server::Simple::CGI) which is killed when a __DIE__ signal is received, normally only when the invoking perl dies. However, as perlvar makes clear, the __DIE__ signal is received when eval blocks die as well. The new version (1.22) of WWW::Mechanize now calles HTTP::Message::decoded_content which calls Encode.pm which has a eval block that require's Encode::ConfigLocal which is usually not present, so the eval dies and the HTTP server is killed as soon as the $mech object tries to do a 'get'. It's simple to use a system variable, $^S to find out if the __DIE__ signal is being called for an eval so we ignore that case with the patch attached.
[DOCUMENTATION]
[ENHANCEMENTS]
Added followable_links() method to return only those links
that your mech can actually follow.
[FIXES]
RT #19147: Tests turn off the http_proxy environment variable before
starting. Thanks to Matt Trout.
RT #18779: makes stuff_inputs() conform to the documentation, changing the implementation to expect an arrayref for $options->{ignore}, as opposed to a hashref. Thanks to Mike O'Regan.
[ENHANCEMENTS]
Added base_is, base_like and base_unlike. Thanks to MATSUNO Tokuhiro.
[FIXES]
has_tag_like()'s regex was reversed, so would match when it shouldn't.
Thanks to Chris Dolan.
[DOCUMENTATION]
Added links to support sites.
[INTERNALS]
Updated test suite to use HTTP::Server::Simple. Thanks to Shawn
Sorichetti for it.
[ENHANCEMENTS]
Added has_tag() and has_tag_like(). Thanks RJBS.
[ENHANCEMENTS]
get_ok() now shows the status line for the mech if the test fails.
get_ok() now returns true/false, not an HTTP::Response.
[ENHANCEMENTS]
Added follow_link_ok(). Thanks to Mike O'Regan.
Added get_ok(). Thanks to Dan Friedman.
[ENHANCEMENTS]
Added content_lacks()
[DOCUMENTATION]
Fixed some documentation bugs. Thanks to Drew Taylor.
[ENHANCEMENTS]
Added content_contains()
Fixed diagnostic errors to work the same way regardless of which version of Test::Builder you have.
[ENHANCEMENTS]
Added $mech->content_unlike and $mech->title_unlike
Made the reporting of where the error happened reflect the caller's code.
[ENHANCEMENTS]
New funcs
[THINGS THAT MAY BREAK YOUR CODE]
Renamed link_status() to link_status_is().
[FIXES]
Fixed a bug in link_status_is().
[ENHANCEMENTS]
Added links_ok() and page_links_ok() methods. Thanks to Shawn
Sorichetti.
First version, released on an unsuspecting world.