help: numderivative => integration - derivation
[scilab.git] / scilab / modules / graphics / tests / unit_tests / xset_xget.dia.ref
1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2011 - Scilab Enterprises - Bruno JOFRET
4 //
5 //  This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- TEST WITH GRAPHIC -->
8 // test xset and xget
9 // font
10 out = xget("font");
11 assert_checkequal(out, [6 1]);
12 // font size
13 out = xget("font size");
14 assert_checkequal(out, 1);
15 // fpf
16 out = xget("fpf");
17 assert_checkequal(out, "");
18 xset("fpf", "%s.%s");
19 out = xget("fpf");
20 assert_checkequal(out, "%s.%s");
21 // auto clear
22 out = xget("auto clear");
23 assert_checkequal(out, "off");
24 // dashes
25 out = xget("dashes");
26 assert_checkequal(out, 1);
27 xset("dashes", 2);
28 out = xget("dashes");
29 assert_checkequal(out, 2);
30 // hidden3d
31 out = xget("hidden3d");
32 assert_checkequal(out, 4);
33 // window figure
34 f = gcf();
35 out = xget("window");
36 assert_checkequal(out, f.figure_id);
37 out = xget("figure");
38 assert_checkequal(out, f.figure_id);
39 // wdim wpdim
40 out = xget("wdim");
41 assert_checkequal(out, f.figure_size);
42 out = xget("wpdim");
43 assert_checkequal(out, f.figure_size);
44 // wpos
45 out = xget("wpos");
46 assert_checkequal(out, f.figure_position);
47 // viewport
48 out = xget("viewport");
49 assert_checkequal(out, f.viewport);
50 // background
51 out = xget("background");
52 assert_checkequal(out, -2);
53 // color foreground pattern
54 out = xget("color");
55 assert_checkequal(out, -1);
56 out = xget("foreground");
57 assert_checkequal(out, -1);
58 out = xget("pattern");
59 assert_checkequal(out, -1);
60 // lastpattern
61 out = xget("lastpattern");
62 assert_checkequal(out, 32);
63 // line mode
64 out = xget("line mode");
65 assert_checkequal(out, 1);
66 // white
67 out = xget("white");
68 assert_checkequal(out, 34);
69 // wresize
70 out = xget("wresize");
71 assert_checkequal(out, 1);
72 // clipgrf
73 out = xget("clipgrf");
74 assert_checkequal(out, 0);
75 // clipoff
76 out = xget("clipoff");
77 assert_checkequal(out, 1);
78 // XSET
79 ierr = execstr("xset(""fpf"");","errcatch");
80 assert_checkequal(ierr, 77);
81 ierr = execstr("xset(""dashes"");","errcatch");
82 assert_checkequal(ierr, 77);
83 ierr = execstr("xset(""color"");","errcatch");
84 assert_checkequal(ierr, 77);
85 ierr = execstr("xset(""pattern"");","errcatch");
86 assert_checkequal(ierr, 77);