6 use Test::More tests=>10;
9 use_ok( 'WWW::Mechanize::Image' );
13 my $link = WWW::Mechanize::Image->new( {
15 base => 'http://base.example.com/',
23 is( $link->url, 'url.html', 'url() works' );
24 is( $link->base, 'http://base.example.com/', 'base() works' );
25 is( $link->name, 'name', 'name() works' );
26 is( $link->alt, 'alt', 'alt() works' );
27 is( $link->tag, 'a', 'tag() works' );
28 is( $link->height, 2112, 'height works' );
29 is( $link->width, 5150, 'width works' );
30 is( $link->url_abs, 'http://base.example.com/url.html', 'url_abs works' );
31 isa_ok( $link->URI, 'URI::URL', 'Returns an object' );