Mercurial > octave
changeset 24840:2ee45d3f6ec1
make getframe tests conditional on have_window_system
* getframe.m: For tests that require QOFFSCREENSURFACE, also require
have_window_system.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 06 Mar 2018 12:18:27 -0500 |
parents | 55021b03884d |
children | 9adc41f55e3d |
files | scripts/image/getframe.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/image/getframe.m Thu Mar 01 17:06:49 2018 -0600 +++ b/scripts/image/getframe.m Tue Mar 06 12:18:27 2018 -0500 @@ -162,7 +162,7 @@ %! image (frame.cdata); %! title ("Lower left hand corner"); -%!testif HAVE_QT_OFFSCREEN +%!testif HAVE_QT_OFFSCREEN; have_window_system () %! hf = figure ("visible", "off"); %! unwind_protect %! pos = get (hf, "position"); @@ -171,7 +171,7 @@ %! close (hf); %! end_unwind_protect -%!testif HAVE_QT_OFFSCREEN +%!testif HAVE_QT_OFFSCREEN; have_window_system () %! hf = figure ("visible", "off"); %! unwind_protect %! hax = axes ("visible", "off", "position", [0 0 1 1]);