summaryrefslogtreecommitdiff
path: root/modules/graphics/tests/unit_tests/xrect.dia.ref
blob: 260b25a53e41babf1e2800fd55a216d46f3f0a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2011 - DIGITEO - Bruno JOFRET
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================
// <-- TEST WITH GRAPHIC -->
// test xrect
xrect(-1, 1, 2, 2);
e = gce();
assert_checkequal(e.type, "Rectangle");
assert_checkequal(e.parent.type, "Axes");
assert_checkequal(e.children, []);
assert_checkequal(e.mark_mode, "off");
assert_checkequal(e.mark_style, 0);
assert_checkequal(e.mark_size_unit, "tabulated");
assert_checkequal(e.mark_size, 0);
assert_checkequal(e.mark_foreground, -1);
assert_checkequal(e.mark_background, -2);
assert_checkequal(e.line_mode, "on");
assert_checkequal(e.fill_mode, "off");
assert_checkequal(e.line_style, 1);
assert_checkequal(e.thickness, 1);
assert_checkequal(e.foreground, -1);
assert_checkequal(e.background, -2);
assert_checkequal(e.data, [-1,1,2,2]);
assert_checkequal(e.visible, "on");
assert_checkequal(e.clip_state, "off");
assert_checkequal(e.clip_box, []);
assert_checkequal(e.user_data, []);