3 t/validate/locus_display.t - validation tests for locus_display.pl
7 Validation tests for locus_display.pl
17 use Test::More tests => 10;
18 use Test::WWW::Mechanize;
22 my $base_url = $ENV{SGN_TEST_SERVER};
23 my $url = "/phenome/locus_display.pl?locus_id=428";
25 my @subsections = split /\n/,<<SUBSECTIONS;
31 Associated loci - graphical view
38 my $mech = Test::WWW::Mechanize->new;
39 $mech->get("$base_url/$url");
43 sub test_subsections {
44 for my $subsection (@subsections) {
45 $mech->content_contains($subsection, "$url contains $subsection");