1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) ????-2008 - INRIA
5 // This file is distributed under the same license as the Scilab package.
6 // =============================================================================
8 // <-- Non-regression test for bug 612 -->
10 // <-- TEST WITH GRAPHIC -->
12 // <-- Bugzilla URL -->
13 // http://bugzilla.scilab.org/show_bug.cgi?id=612
15 // <-- Short Description -->
16 // under unix the dimension of graphic window is limited to
17 // 2^16, if one set dimensions higher than this the effective
18 // dimension, the value really assigned is modulo 2^16
20 // The pb does not exist under windows
23 f.auto_resize = "off";
24 f.figure_size = [2^16+3, 5000];
26 if getos() <> 'Windows' then
27 resultLinux = f.figure_size;
28 resultWindows = [ 65539. 5000.];
29 assert_checkequal(resultLinux, resultWindows);