From 426c3d13a0a5edb386b950df348a38fb1d083e4e Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Thu, 7 May 2009 23:17:13 +0200 Subject: [PATCH] Call ensure_visible() The method is hard to test, but at least it is called in order to see if it will crash. --- bindings/perl/Champlain/t/ChamplainView.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/perl/Champlain/t/ChamplainView.t b/bindings/perl/Champlain/t/ChamplainView.t index bef51e6..20527d9 100644 --- a/bindings/perl/Champlain/t/ChamplainView.t +++ b/bindings/perl/Champlain/t/ChamplainView.t @@ -97,6 +97,10 @@ sub test_generic { ok($view->get('zoom-on-double-click'), "set_zoom_on_double_click(TRUE)"); $view->set_zoom_on_double_click(FALSE); ok(!$view->get('zoom-on-double-click'), "set_zoom_on_double_click(FALSE)"); + + + # Call ensure_visible(), it's to test, but at least we test that it doesn't crash + $view->ensure_visible(10, 10, 30, 30, TRUE); } -- 2.39.5