Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 8115
Status: resolved
Priority: 0/
Queue: Test-WWW-Mechanize

People
Owner: Nobody in particular
Requestors: drew [...] drewtaylor.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.99
Fixed in: (no value)



Subject: [PATCH] Fix documentation for *_unlike() methods
I noticed the docs for the title_unlike() and content_unlike() methods in the 0.99 release were incorrect. I've also used the same language "does (not) match the given regex" for all *_unlike() methods. diff -u Test-WWW-Mechanize.pm.orig Test-WWW-Mechanize.pm --- Test-WWW-Mechanize.pm.orig Mon Oct 25 11:03:01 2004 +++ Test-WWW-Mechanize.pm Mon Oct 25 11:02:47 2004 @@ -96,7 +96,7 @@ =head2 title_unlike( $regex [, $msg ] ) -Tells if the title of the page matches the given regex. +Tells if the title of the page does not match the given regex. $mech->title_unlike( qr/Invoices for (.+)/ @@ -144,7 +144,7 @@ =head2 content_unlike( $regex [, $msg ] ) -Tells if the content of the page matches the given regex +Tells if the content of the page does not match the given regex =cut @@ -219,7 +219,7 @@ =head2 page_links_content_unlike( $regex,[ $msg ] ) Follow all links on the current page and test their contents do not -contain the specified regex. +match the given regex. $mech->page_links_content_unlike(qr/Restricted/, 'Check all links do not contain Restricted'); @@ -379,8 +379,8 @@ =head2 link_content_unlike( $links, $regex [, $msg ] ) -Check the current page for specified links and test the content of each -does not contain regex passed. The links may be specified as a reference +Check the current page for specified links and test that the content of each +does not match the given regex. The links may be specified as a reference to an array containing L<WWW::Mechanize::Link> objects, an array of URLs, or a scalar URL name.
Fixed in 1.02. Thanks.