js packs really should be served with a relative url
[sgn.git] / t / validate / cview.t
blob3eb586d42edeb8db9461f9c45338d5b86045c656
1 =head1 NAME
3 t/validate/cview.t - validation tests for cview/map.pl
5 =head1 DESCRIPTION
7 Validation tests for cview/map.pl
9 =head1 AUTHORS
11 Jonathan "Duke" Leto
13 =cut
15 use strict;
16 use Test::More;
17 use Test::WWW::Mechanize;
19 use lib 't/lib';
20 use SGN::Test qw/validate_urls/;
22 my $base_url = $ENV{SGN_TEST_SERVER};
23 my $url      = "/cview/map.pl?map_id=c9";
25 my $mech = Test::WWW::Mechanize->new;
26 $mech->get("$base_url/$url");
27 if ($mech->content =~ m/No database found/) {
28     plan skip_all => "Skipping Contig map due to missing database";
29 } else {
30     plan tests => 7;
31     validate_urls({ "Contig map" => $url });