summaryrefslogtreecommitdiff
path: root/modules/graphics/tests/unit_tests/arc.tst
blob: 55dc1e79f67da8d966c30813a06e58017ec63b39 (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
// =============================================================================
// 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 arc object

// Check each default property
xarc(-1,1,2,2,0,90*64);
e = gce();

assert_checkequal(e.parent.type, "Axes")
assert_checkequal(e.children, [])
assert_checkequal(e.thickness, 1)
assert_checkequal(e.line_style, 1)
assert_checkequal(e.line_mode, "on")
assert_checkequal(e.fill_mode, "off")
assert_checkequal(e.foreground, -1)
assert_checkequal(e.background, -2)
assert_checkequal(e.data, [-1 1 2 2 0 90])
assert_checkequal(e.visible, "on")
assert_checkequal(e.arc_drawing_method, "lines")
assert_checkequal(e.clip_state, "off")
assert_checkequal(e.clip_box, [])
assert_checkequal(e.user_data, [])