]> err.no Git - libchamplain/commitdiff
The tests for Champlain::MapSourceDesc are in ChamplainMapSourceDesc.t
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Sun, 17 May 2009 20:45:45 +0000 (22:45 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 18 May 2009 20:12:21 +0000 (16:12 -0400)
bindings/perl/Champlain/t/ChamplainMapSourceFactory.t

index f1636876f357e3af28e0c7b77b76cf63d8e3a900..0fd726c882b49cae2bf6a6742b845b798b0ef5bc 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Clutter::TestHelper tests => 31;
+use Clutter::TestHelper tests => 22;
 
 use Champlain ':coords';
 
@@ -62,24 +62,6 @@ sub test_map_factory {
        # Get the maps available
        my @maps = $factory->get_list();
        ok(@maps >= 5, "Maps factory has the default maps");
-       
-       # Find the OAM map and check that the it's properly described
-       my @found = grep { $_->{id} eq Champlain::MapSourceFactory->OAM } @maps;
-       is(scalar(@found), 1);
-       if (@found) {
-               my ($oam_map) = @found;
-               isa_ok($oam_map, 'Champlain::MapSourceDesc');
-               is($oam_map->{id}, Champlain::MapSourceFactory->OAM);
-               is($oam_map->{name}, 'OpenAerialMap');
-               is($oam_map->{license}, "(CC) BY 3.0 OpenAerialMap contributor");
-               is($oam_map->{license_uri}, 'http://creativecommons.org/licenses/by/3.0/');
-               is($oam_map->{min_zoom_level}, 0);
-               is($oam_map->{max_zoom_level}, 17);
-               is($oam_map->{projection}, 'mercator');
-       }
-       else {
-               fail("Can't test a Champlain::MapSourceDesc without a map description") for 1 .. 8;
-       }
 }