Mercurial > octave
comparison libinterp/corefcn/graphics.cc @ 21511:e1c5aca1c798
Fix failing tests when building with --without-opengl
* graphics.cc, __osmesa_print__.cc, uimenu.m, allchild.m, findall.m,
graphics_toolkit.m: Fix failing BIST tests when building with --without-opengl
by adding HAVE_OPENGL to the test preconditions.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Mon, 21 Mar 2016 15:01:12 -0700 |
parents | 40de9f8f23a6 |
children | 38c0c1f5cf57 |
comparison
equal
deleted
inserted
replaced
21510:ddfd7e5f8d18 | 21511:e1c5aca1c798 |
---|---|
4585 else | 4585 else |
4586 update_outerposition (); | 4586 update_outerposition (); |
4587 } | 4587 } |
4588 | 4588 |
4589 /* | 4589 /* |
4590 %!testif HAVE_FLTK | 4590 %!testif HAVE_OPENGL, HAVE_FLTK |
4591 %! hf = figure ("visible", "off"); | 4591 %! hf = figure ("visible", "off"); |
4592 %! graphics_toolkit (hf, "fltk"); | 4592 %! graphics_toolkit (hf, "fltk"); |
4593 %! unwind_protect | 4593 %! unwind_protect |
4594 %! subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1)); | 4594 %! subplot(2,1,1); plot(rand(10,1)); subplot(2,1,2); plot(rand(10,1)); |
4595 %! hax = findall (gcf (), "type", "axes"); | 4595 %! hax = findall (gcf (), "type", "axes"); |
4604 %! assert (cell2mat (get (hax, "looseinset")), looseinsets, 1e-4); | 4604 %! assert (cell2mat (get (hax, "looseinset")), looseinsets, 1e-4); |
4605 %! assert (cell2mat (get (hax, "tightinset")), tightinsets, 1e-4); | 4605 %! assert (cell2mat (get (hax, "tightinset")), tightinsets, 1e-4); |
4606 %! unwind_protect_cleanup | 4606 %! unwind_protect_cleanup |
4607 %! close (hf); | 4607 %! close (hf); |
4608 %! end_unwind_protect | 4608 %! end_unwind_protect |
4609 %!testif HAVE_FLTK | 4609 %!testif HAVE_OPENGL, HAVE_FLTK |
4610 %! hf = figure ("visible", "off"); | 4610 %! hf = figure ("visible", "off"); |
4611 %! graphics_toolkit (hf, "fltk"); | 4611 %! graphics_toolkit (hf, "fltk"); |
4612 %! fpos = get (hf, "position"); | 4612 %! fpos = get (hf, "position"); |
4613 %! unwind_protect | 4613 %! unwind_protect |
4614 %! plot (rand (3)) | 4614 %! plot (rand (3)) |
4623 %! assert (get (gca, "looseinset"), looseinset, 0.001) | 4623 %! assert (get (gca, "looseinset"), looseinset, 0.001) |
4624 %! assert (get (gca, "tightinset"), tightinset, 0.001) | 4624 %! assert (get (gca, "tightinset"), tightinset, 0.001) |
4625 %! unwind_protect_cleanup | 4625 %! unwind_protect_cleanup |
4626 %! close (hf); | 4626 %! close (hf); |
4627 %! end_unwind_protect | 4627 %! end_unwind_protect |
4628 %!testif HAVE_FLTK | 4628 %!testif HAVE_OPENGL, HAVE_FLTK |
4629 %! hf = figure ("visible", "off"); | 4629 %! hf = figure ("visible", "off"); |
4630 %! graphics_toolkit (hf, "fltk"); | 4630 %! graphics_toolkit (hf, "fltk"); |
4631 %! fpos = get (hf, "position"); | 4631 %! fpos = get (hf, "position"); |
4632 %! set (gca, "activepositionproperty", "position") | 4632 %! set (gca, "activepositionproperty", "position") |
4633 %! unwind_protect | 4633 %! unwind_protect |