use strict;
use warnings;
-use Clutter::TestHelper tests => 3;
+use Clutter::TestHelper tests => 4;
use Champlain ':coords';
"get_tile_uri()"
);
-
- # Change the tile URI and check that there's a change
- $map_source->set_tile_uri('http://www.it-is-not-free.org/hidden/#X#-#Y#_#Z#.png');
- is(
- $map_source->get_tile_uri(50, 75, 6),
- 'http://www.it-is-not-free.org/hidden/50-75_6.png',
- "get_tile_uri() changed"
- );
+ my $tile = Champlain::Tile->new();
+ is($tile->get_state(), 'init');
+ $map_source->fill_tile($tile);
+ is($tile->get_state(), 'loading');
}
champlain_network_map_source_get_tile_uri (ChamplainNetworkMapSource *source, gint x, gint y, gint z)
-#void
-#champlain_network_map_source_set_tile_uri (ChamplainNetworkMapSource *source, const gchar *uri_format)
+void
+champlain_network_map_source_set_uri_format (ChamplainNetworkMapSource *source, const gchar *uri_format)
-#void
-#champlain_network_map_source_get_tile (ChamplainMapSource *source, ChamplainView *view, ChamplainZoomLevel *level, ChamplainTile *tile)
-
+void
+champlain_network_map_source_fill_tile (ChamplainMapSource *source, ChamplainTile *tile)