From: Emmanuel Rodriguez Date: Thu, 7 May 2009 21:17:13 +0000 (+0200) Subject: Call ensure_visible() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=426c3d13a0a5edb386b950df348a38fb1d083e4e;p=libchamplain Call ensure_visible() The method is hard to test, but at least it is called in order to see if it will crash. --- 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); }