Mercurial > hg > octave-nkf
diff scripts/plot/allchild.m @ 13096:5553412c6614
Tests for scripts/plot
* (allchild.m, ancestor.m, clf.m, findall.m, findobj.m, gcf.m,
line.m, view.m, whitebg.m, xlim.m, ylim.m, zlim.m): Add tests
author | Kai Habel <kai.habel@gmx.de> |
---|---|
date | Sun, 04 Sep 2011 21:58:42 +0200 |
parents | fd0a3ac60b0e |
children | 2ea1658ad049 |
line wrap: on
line diff
--- a/scripts/plot/allchild.m +++ b/scripts/plot/allchild.m @@ -48,3 +48,12 @@ end_unwind_protect endfunction + +%!test +%! hf = figure (1232, "visible", "off"); +%! unwind_protect +%! l = line; +%! assert(get(allchild(hf),'type'),{'axes'; 'uimenu'; 'uimenu'; 'uimenu'}) +%! unwind_protect_cleanup +%! close (hf); +%! end_unwind_protect