summaryrefslogtreecommitdiffstats
path: root/scilab
diff options
context:
space:
mode:
authorCedric Delamarre <cedric.delamarre@esi-group.com>2021-05-17 11:05:57 +0200
committerClement DAVID <clement.david@esi-group.com>2021-05-17 11:14:36 +0200
commit593f56a7bfb88606a132a7d436e778ef310df134 (patch)
treebec9207c176a1ba4425e47bdfb72b83060a2499a /scilab
parent8a066eb30a2ac860e8cb570a77b72d6639ff7abf (diff)
downloadscilab-593f56a7bfb88606a132a7d436e778ef310df134.zip
scilab-593f56a7bfb88606a132a7d436e778ef310df134.tar.gz
move test file after c296e494a846
Change-Id: I4a1cf09d00d5fa7d0061c0d3ae2de31bb62f4243
Diffstat (limited to 'scilab')
-rw-r--r--scilab/modules/graphics/tests/nonreg_tests/bug_16407.tst39
1 files changed, 39 insertions, 0 deletions
diff --git a/scilab/modules/graphics/tests/nonreg_tests/bug_16407.tst b/scilab/modules/graphics/tests/nonreg_tests/bug_16407.tst
new file mode 100644
index 0000000..0dbda28
--- /dev/null
+++ b/scilab/modules/graphics/tests/nonreg_tests/bug_16407.tst
@@ -0,0 +1,39 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2020 - St├ęphane MOTTELET
4//
5// This file is distributed under the same license as the Scilab package.
6// =============================================================================
7
8// <-- TEST WITH GRAPHIC -->
9// <-- NO CHECK REF -->
10
11// <-- Non-regression test for bug 16407 -->
12//
13// <-- Bugzilla URL -->
14// http://bugzilla.scilab.org/show_bug.cgi?id=16407
15//
16// <-- Short Description -->
17// Fec rendering is incorrect
18
19x=[0 1 0]';
20y=[0 0 1]';
21z=[0 1 1]';
22triangles=[1 1 2 3 1];
23clf
24n=4;
25gcf().color_map = jetcolormap(n)
26fec(x,y,triangles,z);
27xs2png(0,fullfile(TMPDIR,"bug_16407_1.png"))
28//
29w = 0.125;
30xfrect(0,w,w,w)
31gce().background = 1;
32xfrect(0.5-w,0.5,w,w)
33gce().background = n;
34xs2png(0,fullfile(TMPDIR,"bug_16407_2.png"))
35//
36res1 = getmd5(fullfile(TMPDIR,"bug_16407_1.png"));
37res2 = getmd5(fullfile(TMPDIR,"bug_16407_2.png"));
38assert_checkequal(res1,res2)
39