Lines 47-60
GOOD_HEAD: { # Stop giggling, you!
Link Here
|
47 |
} |
47 |
} |
48 |
|
48 |
|
49 |
BAD_HEAD: { |
49 |
BAD_HEAD: { |
50 |
my $badurl = 'http://wango.nonexistent.xx-only-testing/'; |
50 |
my $badurl = 'http://wango.nonexistent.xx-only-testing./'; |
51 |
$mech->head($badurl); |
51 |
$mech->head($badurl); |
52 |
ok(!$mech->success, q{sanity check: we can't load NONEXISTENT.html} ); |
52 |
ok(!$mech->success, q{sanity check: we can't load NONEXISTENT.html} ); |
53 |
|
53 |
|
54 |
test_out( 'not ok 1 - Try to HEAD bad URL' ); |
54 |
test_out( 'not ok 1 - Try to HEAD bad URL' ); |
55 |
test_fail( +3 ); |
55 |
test_fail( +3 ); |
56 |
test_diag( '500' ); |
56 |
test_diag( '500' ); |
57 |
test_diag( q{Can't connect to wango.nonexistent.xx-only-testing:80 (Bad hostname 'wango.nonexistent.xx-only-testing')} ); |
57 |
test_diag( q{Can't connect to wango.nonexistent.xx-only-testing.:80 (Bad hostname 'wango.nonexistent.xx-only-testing.')} ); |
58 |
my $ok = $mech->head_ok( $badurl, 'Try to HEAD bad URL' ); |
58 |
my $ok = $mech->head_ok( $badurl, 'Try to HEAD bad URL' ); |
59 |
test_test( 'Fails to HEAD nonexistent URI and reports failure' ); |
59 |
test_test( 'Fails to HEAD nonexistent URI and reports failure' ); |
60 |
|
60 |
|