summaryrefslogtreecommitdiffstats
path: root/scilab/modules/graphics
diff options
context:
space:
mode:
authorManuel Juliachs <manuel.juliachs@scilab.org>2010-03-04 16:22:31 +0100
committerManuel Juliachs <manuel.juliachs@scilab.org>2010-03-04 16:22:31 +0100
commit951699a6c1003309d54f91c9b16ada2fe8715ba1 (patch)
tree3d2d88b7d2076c85d836997997dd1fb4a172978e /scilab/modules/graphics
parent2d214412e11c9c96c7105e4e94aeed4f4296f3ab (diff)
downloadscilab-951699a6c1003309d54f91c9b16ada2fe8715ba1.zip
scilab-951699a6c1003309d54f91c9b16ada2fe8715ba1.tar.gz
Non-regression test added for bug #6531
Diffstat (limited to 'scilab/modules/graphics')
-rw-r--r--scilab/modules/graphics/tests/nonreg_tests/bug_6531.dia.ref25
-rw-r--r--scilab/modules/graphics/tests/nonreg_tests/bug_6531.tst27
2 files changed, 52 insertions, 0 deletions
diff --git a/scilab/modules/graphics/tests/nonreg_tests/bug_6531.dia.ref b/scilab/modules/graphics/tests/nonreg_tests/bug_6531.dia.ref
new file mode 100644
index 0000000..43239f1
--- /dev/null
+++ b/scilab/modules/graphics/tests/nonreg_tests/bug_6531.dia.ref
@@ -0,0 +1,25 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2010 - DIGITEO - Manuel Juliachs
4//
5// This file is distributed under the same license as the Scilab package.
6// =============================================================================
7// <-- TEST WITH GRAPHIC -->
8// <-- Non-regression test for bug 6531 -->
9//
10// <-- Bugzilla URL -->
11// http://bugzilla.scilab.org/show_bug.cgi?id=6531
12//
13// <-- Short Description -->
14// the caption's default background color changes when a color is added to the current colormap
15//
16plot(sin(0:10));e=gce();
17p=e.children(1);
18c=captions(p,'foo');
19c.background //-->-2 ok
20 ans =
21
22 - 2.
23p.foreground=color(200,128,33);
24// The caption's background color should remain equal to -2
25if (c.background <> -2) then bugmes();quit;end
diff --git a/scilab/modules/graphics/tests/nonreg_tests/bug_6531.tst b/scilab/modules/graphics/tests/nonreg_tests/bug_6531.tst
new file mode 100644
index 0000000..97037ae
--- /dev/null
+++ b/scilab/modules/graphics/tests/nonreg_tests/bug_6531.tst
@@ -0,0 +1,27 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2010 - DIGITEO - Manuel Juliachs
4//
5// This file is distributed under the same license as the Scilab package.
6// =============================================================================
7
8// <-- TEST WITH GRAPHIC -->
9
10// <-- Non-regression test for bug 6531 -->
11//
12// <-- Bugzilla URL -->
13// http://bugzilla.scilab.org/show_bug.cgi?id=6531
14//
15// <-- Short Description -->
16// the caption's default background color changes when a color is added to the current colormap
17//
18
19plot(sin(0:10));e=gce();
20p=e.children(1);
21c=captions(p,'foo');
22c.background //-->-2 ok
23p.foreground=color(200,128,33);
24
25// The caption's background color should remain equal to -2
26if (c.background <> -2) then pause; end
27