changeset 25879:c25ee75beea1

adjust tests for menu changes in changeset eba6d823cf62 * allchild.m, findall.m: Fix tests for new menu layout used in fltk figure windows.
author John W. Eaton <jwe@octave.org>
date Thu, 13 Sep 2018 07:33:36 -0400
parents bb4af245dff7
children 369e43cda3c7
files scripts/plot/util/allchild.m scripts/plot/util/findall.m
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/allchild.m	Wed Sep 12 23:19:40 2018 +0200
+++ b/scripts/plot/util/allchild.m	Thu Sep 13 07:33:36 2018 -0400
@@ -54,7 +54,7 @@
 %! unwind_protect
 %!   l = line;
 %!   kids = allchild (hf);
-%!   assert (get (kids, "type"), {"axes"; "uimenu"; "uimenu"});
+%!   assert (get (kids, "type"), {"axes"; "uimenu"; "uimenu"; "uimenu"});
 %! unwind_protect_cleanup
 %!   close (hf);
 %!   graphics_toolkit (toolkit);
--- a/scripts/plot/util/findall.m	Wed Sep 12 23:19:40 2018 +0200
+++ b/scripts/plot/util/findall.m	Thu Sep 13 07:33:36 2018 -0400
@@ -56,7 +56,7 @@
 %! unwind_protect
 %!   h = findall (hf);
 %!   all_handles(1) = {"figure"};
-%!   all_handles(2:18,1) = {"uimenu"};
+%!   all_handles(2:24,1) = {"uimenu"};
 %!   assert (get (h, "type"), all_handles);
 %! unwind_protect_cleanup
 %!   close (hf);