changeset 26673:c3c657ba1e97 stable

Test hgload can handle old figure files (bug #53468) * struct2hdl.m: create figure invisible and set visibility afterwards * test/figure_files/ofig403.ofig, ofig421.ofig, ofig51.ofig: add binary figure files saved from Octave 4.0.3, 4.2.1, 5.1 respectively * test/hgload.tst: new test file
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Wed, 28 Mar 2018 15:27:58 +0200
parents 903c9a39e051
children df42ea23502f
files test/figure_files/ofig403.ofig test/figure_files/ofig421.ofig test/figure_files/ofig51.ofig test/hgload.tst
diffstat 4 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file test/figure_files/ofig403.ofig has changed
Binary file test/figure_files/ofig421.ofig has changed
Binary file test/figure_files/ofig51.ofig has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/hgload.tst	Wed Mar 28 15:27:58 2018 +0200
@@ -0,0 +1,29 @@
+## Copyright (C) 2018 Pantxo Diribarne
+##
+## This file is part of Octave.
+##
+## Octave is free software: you can redistribute it and/or modify it
+## under the terms of the GNU General Public License as published by
+## the Free Software Foundation, either version 3 of the License, or
+## (at your option) any later version.
+##
+## Octave is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with Octave; see the file COPYING.  If not, see
+## <https://www.gnu.org/licenses/>.
+
+## Load an Octave 4.0.3 figure file
+%!test
+%! hgload (fullfile ("figure_files", "ofig403.ofig"));
+
+## Load an Octave 4.2.1 figure file
+%!test
+%! hgload (fullfile ("figure_files", "ofig421.ofig"));
+
+## Load an Octave 5.1 figure file
+%!test
+%! hgload (fullfile ("figure_files", "ofig51.ofig"));