]> err.no Git - libchamplain/commitdiff
Bindings for champlain_selection_layer_select_all()
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Sat, 11 Jul 2009 08:42:45 +0000 (10:42 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Tue, 28 Jul 2009 21:28:15 +0000 (17:28 -0400)
bindings/perl/Champlain/t/ChamplainSelectionLayer.t
bindings/perl/Champlain/xs/ChamplainSelectionLayer.xs

index 7c8ec87466df36fc43f43998ea5c0a26f22e4f8c..9470407e5261db33297eba739d1594eaee6b50ba 100644 (file)
@@ -45,7 +45,7 @@ sub test_empty_multiple {
        # Can't be tested but at least they are invoked
        $layer->select($marker);
        $layer->unselect($marker);
-#      $layer->select_all();
+       $layer->select_all();
        $layer->unselect_all();
 
        # Change the selection mode
@@ -93,7 +93,7 @@ sub test_empty_single {
        # Can't be tested but at least they are invoked
        $layer->select($marker);
        $layer->unselect($marker);
-#      $layer->select_all();
+       $layer->select_all();
        $layer->unselect_all();
 
        # Change the selection mode
@@ -194,6 +194,16 @@ sub test_markers_multiple {
                "[multiple] get_selected_markers()"
        );
 
+
+       # Select all markers
+       $layer->select_all();
+       $count = $layer->count_selected_markers;
+       is($count, 4, "[multiple] select_all()");
+
+       $layer->select_all();
+       $count = $layer->count_selected_markers;
+       is($count, 4, "[multiple] select_all()");
+
        return 0;
 }
 
index 8e0f8fb09e2bcac3f2ef7518d9758241c14a66db..6cf040b3da3a77500ca6579444691e062d00706f 100644 (file)
@@ -48,8 +48,8 @@ gboolean
 champlain_selection_layer_marker_is_selected (ChamplainSelectionLayer *layer, ChamplainBaseMarker *marker)
 
 
-#void
-#champlain_selection_layer_select_all (ChamplainSelectionLayer *layer)
+void
+champlain_selection_layer_select_all (ChamplainSelectionLayer *layer)
 
 
 void