summaryrefslogtreecommitdiffstats
path: root/scilab/modules
diff options
context:
space:
mode:
authorVincent COUVERT <vincent.couvert@scilab.org>2010-11-18 16:07:29 +0100
committerAllan CORNET <allan.cornet@scilab.org>2010-11-30 15:52:47 +0100
commit1984fcecff151f0c2a5179c55a926ac923aaee16 (patch)
tree93201b8daf43ceeff8058a5f28e35f9e143d2b26 /scilab/modules
parent0acdbfeb5e5a095a842da0045ccc09816873b0c4 (diff)
downloadscilab-1984fcecff151f0c2a5179c55a926ac923aaee16.zip
scilab-1984fcecff151f0c2a5179c55a926ac923aaee16.tar.gz
Add a non-regression test for bug 4834 which has been fixed a long time ago...
Change-Id: Ifbf58a294ece91d82aa6658154f43ce2ae46f326
Diffstat (limited to 'scilab/modules')
-rw-r--r--scilab/modules/gui/tests/nonreg_tests/bug_4834.dia.ref57
-rw-r--r--scilab/modules/gui/tests/nonreg_tests/bug_4834.tst36
2 files changed, 93 insertions, 0 deletions
diff --git a/scilab/modules/gui/tests/nonreg_tests/bug_4834.dia.ref b/scilab/modules/gui/tests/nonreg_tests/bug_4834.dia.ref
new file mode 100644
index 0000000..fa43ad3
--- /dev/null
+++ b/scilab/modules/gui/tests/nonreg_tests/bug_4834.dia.ref
@@ -0,0 +1,57 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2010 - DIGITEO - Vincent COUVERT
4//
5// This file is distributed under the same license as the Scilab package.
6// =============================================================================
7//
8// <-- TEST WITH GRAPHICS -->
9//
10// <-- JVM MANDATORY -->
11//
12// <-- Non-regression test for bug 4834 -->
13//
14// <-- Bugzilla URL -->
15// http://bugzilla.scilab.org/show_bug.cgi?id=4834
16//
17// <-- Short Description -->
18// When called with more than 11 items displaytree did not open a window and Scilab reported a java exception.
19l1 = uiCreateNode("CONST_m","default","");
20l2 = uiCreateNode("GENSQR_f","default","");
21l3 = uiCreateNode("RAMP","default","");
22l4 = uiCreateNode("RAND_m","default","");
23l5 = uiCreateNode("RFILE_f","default","");
24l6 = uiCreateNode("CLKINV_f","default","");
25l7 = uiCreateNode("CURV_f","default","");
26l8 = uiCreateNode("INIMPL_f","default","");
27l9 = uiCreateNode("SAWTOOTH_f","default","");
28l10 = uiCreateNode("READAU_f","default","");
29l11 = uiCreateNode("WRITEAU_f","default","");
30root1 = uiCreateNode("Sources");
31tree = uiCreateTree(root1,l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11);
32uiDisplayTree(tree)
33 ans =
34
35
36 ans(1)
37
38 Tree
39
40 ans(2)
41
42 label: "Sources"
43 icon: ""
44 callback: ""
45
46 ans(3)
47
48
49 ans(3)(1)
50
51 Tree
52
53 ans(3)(2)
54
55 label: "CONST_m"
56 icon: "default"
57 callback: ""
diff --git a/scilab/modules/gui/tests/nonreg_tests/bug_4834.tst b/scilab/modules/gui/tests/nonreg_tests/bug_4834.tst
new file mode 100644
index 0000000..c52dc8d
--- /dev/null
+++ b/scilab/modules/gui/tests/nonreg_tests/bug_4834.tst
@@ -0,0 +1,36 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2010 - DIGITEO - Vincent COUVERT
4//
5// This file is distributed under the same license as the Scilab package.
6// =============================================================================
7//
8// <-- TEST WITH GRAPHICS -->
9//
10// <-- JVM MANDATORY -->
11//
12// <-- Non-regression test for bug 4834 -->
13//
14// <-- Bugzilla URL -->
15// http://bugzilla.scilab.org/show_bug.cgi?id=4834
16//
17// <-- Short Description -->
18// When called with more than 11 items displaytree did not open a window and Scilab reported a java exception.
19
20l1 = uiCreateNode("CONST_m","default","");
21l2 = uiCreateNode("GENSQR_f","default","");
22l3 = uiCreateNode("RAMP","default","");
23l4 = uiCreateNode("RAND_m","default","");
24l5 = uiCreateNode("RFILE_f","default","");
25l6 = uiCreateNode("CLKINV_f","default","");
26l7 = uiCreateNode("CURV_f","default","");
27l8 = uiCreateNode("INIMPL_f","default","");
28l9 = uiCreateNode("SAWTOOTH_f","default","");
29l10 = uiCreateNode("READAU_f","default","");
30l11 = uiCreateNode("WRITEAU_f","default","");
31
32root1 = uiCreateNode("Sources");
33
34tree = uiCreateTree(root1,l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11);
35
36uiDisplayTree(tree)