]> err.no Git - libchamplain/commitdiff
Test calling champlain_selection_layer_select twice on the smame marker
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Sat, 11 Jul 2009 08:46:40 +0000 (10:46 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Tue, 28 Jul 2009 21:28:28 +0000 (17:28 -0400)
bindings/perl/Champlain/t/ChamplainSelectionLayer.t

index 9470407e5261db33297eba739d1594eaee6b50ba..1409acf3bf1c1c7ba0c715eaeeb95a29333abf6a 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Clutter::TestHelper tests => 51;
+use Clutter::TestHelper tests => 54;
 
 use Champlain;
 use Data::Dumper;
@@ -241,6 +241,10 @@ sub test_markers_single {
 
        is($layer->count_selected_markers, 1, "[single] count_selected_markers()");
 
+       # Reselect the marker once more
+       $layer->select($layer_markers[3]);
+       is($layer->get_selected, $layer_markers[3], "[single] reselected the selected marker");
+
        is_deeply(
                [ $layer->get_selected_markers ],
                [$layer_markers[3]],