Mercurial > octave
changeset 28412:cd86f37bfbc3
uisetfont.m: Make BISTs conditional on HAVE_FONTCONFIG.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 06 Jun 2020 19:47:30 +0200 |
parents | c57b33d1db48 |
children | 6f415e9b14ae |
files | scripts/gui/uisetfont.m |
diffstat | 1 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/gui/uisetfont.m Sat Jun 06 11:17:42 2020 -0400 +++ b/scripts/gui/uisetfont.m Sat Jun 06 19:47:30 2020 +0200 @@ -362,8 +362,13 @@ ## Test input validation -%!error <Invalid call> uisetfont (1, 2, 3) -%!error <Invalid call> uisetfont (110, struct ()) -%!error <H must be a handle to an axes> uisetfont (groot ()) -%!error <FONTSTRUCT .* must have fields FontName,.*> uisetfont (struct ()) -%!error <TITLE must be a character vector> uisetfont ({"Title"}) +%!testif HAVE_FONTCONFIG +%! fail ("uisetfont (1, 2, 3)", "Invalid call"); +%!testif HAVE_FONTCONFIG +%! fail ("uisetfont (110, struct ())", "Invalid call"); +%!testif HAVE_FONTCONFIG +%! fail ("uisetfont (groot ())", "H must be a handle to an axes"); +%!testif HAVE_FONTCONFIG +%! fail ("uisetfont (struct ())", "FONTSTRUCT .* must have fields FontName,.*"); +%!testif HAVE_FONTCONFIG +%! fail ("uisetfont ({'Title'})", "TITLE must be a character vector");