From 593f56a7bfb88606a132a7d436e778ef310df134 Mon Sep 17 00:00:00 2001 From: Cedric Delamarre Date: Mon, 17 May 2021 11:05:57 +0200 Subject: [PATCH] move test file after c296e494a846 Change-Id: I4a1cf09d00d5fa7d0061c0d3ae2de31bb62f4243 --- graphics/tests/nonreg_tests/bug_16407.tst | 39 -------------------- .../graphics/tests/nonreg_tests/bug_16407.tst | 39 ++++++++++++++++++++ 2 files changed, 39 insertions(+), 39 deletions(-) delete mode 100644 graphics/tests/nonreg_tests/bug_16407.tst create mode 100644 scilab/modules/graphics/tests/nonreg_tests/bug_16407.tst diff --git a/graphics/tests/nonreg_tests/bug_16407.tst b/graphics/tests/nonreg_tests/bug_16407.tst deleted file mode 100644 index 0dbda28..0000000 --- a/graphics/tests/nonreg_tests/bug_16407.tst +++ /dev/null @@ -1,39 +0,0 @@ -// ============================================================================= -// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab -// Copyright (C) 2020 - Stéphane MOTTELET -// -// This file is distributed under the same license as the Scilab package. -// ============================================================================= - -// <-- TEST WITH GRAPHIC --> -// <-- NO CHECK REF --> - -// <-- Non-regression test for bug 16407 --> -// -// <-- Bugzilla URL --> -// http://bugzilla.scilab.org/show_bug.cgi?id=16407 -// -// <-- Short Description --> -// Fec rendering is incorrect - -x=[0 1 0]'; -y=[0 0 1]'; -z=[0 1 1]'; -triangles=[1 1 2 3 1]; -clf -n=4; -gcf().color_map = jetcolormap(n) -fec(x,y,triangles,z); -xs2png(0,fullfile(TMPDIR,"bug_16407_1.png")) -// -w = 0.125; -xfrect(0,w,w,w) -gce().background = 1; -xfrect(0.5-w,0.5,w,w) -gce().background = n; -xs2png(0,fullfile(TMPDIR,"bug_16407_2.png")) -// -res1 = getmd5(fullfile(TMPDIR,"bug_16407_1.png")); -res2 = getmd5(fullfile(TMPDIR,"bug_16407_2.png")); -assert_checkequal(res1,res2) - 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 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2020 - Stéphane MOTTELET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- TEST WITH GRAPHIC --> +// <-- NO CHECK REF --> + +// <-- Non-regression test for bug 16407 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=16407 +// +// <-- Short Description --> +// Fec rendering is incorrect + +x=[0 1 0]'; +y=[0 0 1]'; +z=[0 1 1]'; +triangles=[1 1 2 3 1]; +clf +n=4; +gcf().color_map = jetcolormap(n) +fec(x,y,triangles,z); +xs2png(0,fullfile(TMPDIR,"bug_16407_1.png")) +// +w = 0.125; +xfrect(0,w,w,w) +gce().background = 1; +xfrect(0.5-w,0.5,w,w) +gce().background = n; +xs2png(0,fullfile(TMPDIR,"bug_16407_2.png")) +// +res1 = getmd5(fullfile(TMPDIR,"bug_16407_1.png")); +res2 = getmd5(fullfile(TMPDIR,"bug_16407_2.png")); +assert_checkequal(res1,res2) + -- 1.7.9.5