WWW-Mechanize-Firefox
view release on metacpan or search on metacpan
t/55-basic-auth.t view on Meta::CPAN
use Test::More;
plan skip_all => "presetting auth does not work yet";
if (! eval { require HTTP::Daemon; 1 }) {
plan skip_all => "HTTP::Daemon required to test basic authentication";
exit
};
# We want to be safe from non-resolving local host names
delete @ENV{qw(HTTP_PROXY http_proxy CGI_HTTP_PROXY)};
my $mech = eval { WWW::Mechanize::Firefox->new(
autodie => 0,
#log => [qw[debug]],
)
};
if (! $mech) {
my $err = $@;
plan skip_all => "Couldn't connect to MozRepl: $@";
t/mechanize/autocheck.t view on Meta::CPAN
#!perl -Tw
use warnings;
use strict;
use Test::More;
BEGIN { delete @ENV{ qw( http_proxy HTTP_PROXY ) }; }
BEGIN {
eval 'use Test::Exception';
if( $@ ) {
plan skip_all => 'Test::Exception required to test autodie';
exit;
};
}
my $NONEXISTENT = 'blahblablah.xx-nonexistent.foo';
my @results = gethostbyname( $NONEXISTENT );
t/mechanize/content.t view on Meta::CPAN
=head1 NAME
content.t
=head1 SYNOPSIS
Tests the transforming forms of $mech->content().
=cut
BEGIN { delete @ENV{ qw( http_proxy HTTP_PROXY ) }; };
use WWW::Mechanize::Firefox;
my $mech = eval { WWW::Mechanize::Firefox->new(
autodie => 0,
#log => [qw[debug]]
)};
if (! $mech) {
my $err = $@;
plan skip_all => "Couldn't connect to MozRepl: $@";
( run in 0.933 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )