From 440684914c1d8743ecc743276c7e6bd197c0a034 Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Sun, 10 May 2009 23:26:41 +0200 Subject: [PATCH] No need to show the tests in a window --- bindings/perl/Champlain/t/ChamplainView.t | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/perl/Champlain/t/ChamplainView.t b/bindings/perl/Champlain/t/ChamplainView.t index a2189b3..4364bb4 100644 --- a/bindings/perl/Champlain/t/ChamplainView.t +++ b/bindings/perl/Champlain/t/ChamplainView.t @@ -214,11 +214,9 @@ sub test_event { # NOTE: At the moment this works only if the view is in a stage and if # show_all() was called my $stage = Clutter::Stage->get_default(); - $stage->set_size($size, $size); $view->set_size($size, $size); $view->center_on(0, 0); $stage->add($view); - $stage->show_all(); # Create a fake event in the middle of the tile my $event = Clutter::Event->new('button_press'); @@ -335,14 +333,11 @@ sub test_ensure_markers_visible { $layer->add($marker); } $view->add_layer($layer); - $layer->show(); - # Must add the view to a stage for this test + # Must add the view to a stage and give a size for this test my $stage = Clutter::Stage->get_default(); $stage->add($view); $view->set_size(400, 400); - $stage->set_size($view->get_size); - $stage->show_all(); $view->ensure_markers_visible(\@markers, TRUE); @@ -387,6 +382,11 @@ sub create_marker { sub run_animation_loop { my ($view) = @_; +# if (my $stage = $view->get_stage) { +# $stage->show_all(); +# } + + # Give us a bit of time to get there since this is an animation and it # requires an event loop. We add an idle timeout in order to make sure that we # don't wait forever. -- 2.39.5