diff options
author | Shashank | 2017-05-29 12:40:26 +0530 |
---|---|---|
committer | Shashank | 2017-05-29 12:40:26 +0530 |
commit | 0345245e860375a32c9a437c4a9d9cae807134e9 (patch) | |
tree | ad51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/renderer/tests | |
download | scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2 scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip |
CMSCOPE changed
Diffstat (limited to 'modules/renderer/tests')
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_11293.tst | 25 | ||||
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_11804.tst | 24 | ||||
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_11982.dia.ref | 20 | ||||
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_11982.tst | 21 | ||||
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_4055.dia.ref | 20 | ||||
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_4055.tst | 26 | ||||
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_6532.tst | 39 | ||||
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_6558.tst | 26 | ||||
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_6870.tst | 27 | ||||
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_7286.dia.ref | 25 | ||||
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_7286.tst | 25 | ||||
-rwxr-xr-x | modules/renderer/tests/nonreg_tests/bug_7990.tst | 25 |
12 files changed, 303 insertions, 0 deletions
diff --git a/modules/renderer/tests/nonreg_tests/bug_11293.tst b/modules/renderer/tests/nonreg_tests/bug_11293.tst new file mode 100755 index 000000000..22a4db1ed --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_11293.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET +// +//// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- TEST WITH GRAPHIC --> +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 11293 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/11293 +// +// <-- Short Description --> +// Line style was not taken into account + +x=linspace(0,1,100); +plot2d(x,x); +e=gce(); +p=e.children(1); +p.line_style=2; + +// Check if a dashed line is drawn.
\ No newline at end of file diff --git a/modules/renderer/tests/nonreg_tests/bug_11804.tst b/modules/renderer/tests/nonreg_tests/bug_11804.tst new file mode 100755 index 000000000..9ae4e9113 --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_11804.tst @@ -0,0 +1,24 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET +// +//// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- TEST WITH GRAPHIC --> +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 11804 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/11804 +// +// <-- Short Description --> +// Untranslated prompt messages + +assert_checktrue(getlanguage()~='en_US'); +f=figure("figure_name","bug_11804"); +plot(); +// Click button "zoom area" +// Check the messages at the bootom of figure +// are in the selected language diff --git a/modules/renderer/tests/nonreg_tests/bug_11982.dia.ref b/modules/renderer/tests/nonreg_tests/bug_11982.dia.ref new file mode 100755 index 000000000..dccca170e --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_11982.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Calixte DENIZET +// +//// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- TEST WITH GRAPHIC --> +// +// <-- Non-regression test for bug 11982 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/11982 +// +// <-- Short Description --> +// Ticks computations was made asynchronously +drawlater(); +plot2d(); +a=gca(); +computed=a.x_ticks.locations; +assert_checkfalse(computed == (0:0.1:1)); diff --git a/modules/renderer/tests/nonreg_tests/bug_11982.tst b/modules/renderer/tests/nonreg_tests/bug_11982.tst new file mode 100755 index 000000000..add6d7463 --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_11982.tst @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2013 - Scilab Enterprises - Calixte DENIZET +// +//// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- TEST WITH GRAPHIC --> +// +// <-- Non-regression test for bug 11982 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/11982 +// +// <-- Short Description --> +// Ticks computations was made asynchronously +drawlater(); +plot2d(); +a=gca(); +computed=a.x_ticks.locations; +assert_checkfalse(computed == (0:0.1:1)); diff --git a/modules/renderer/tests/nonreg_tests/bug_4055.dia.ref b/modules/renderer/tests/nonreg_tests/bug_4055.dia.ref new file mode 100755 index 000000000..dafebc87d --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_4055.dia.ref @@ -0,0 +1,20 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// Copyright (C) 2013 - Scilab Enterprises - Adeline CARNIS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 4055 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4055 +// +// <-- Short Description --> +// From time to time, when I plot a graphic, scilab displays a blank graphic windows. +if getos() == 'Windows' then + if fileinfo(SCI+'\bin\jogl_cg.dll') == [] then bugmes();quit;end + if fileinfo(SCI+'\bin\gluegen2-rt.dll') == [] then bugmes();quit;end + if fileinfo(SCI+'\thirdparty\gluegen2-rt.jar') == [] then bugmes();quit;end + if fileinfo(SCI+'\thirdparty\jogl2.jar') == [] then bugmes();quit;end +end diff --git a/modules/renderer/tests/nonreg_tests/bug_4055.tst b/modules/renderer/tests/nonreg_tests/bug_4055.tst new file mode 100755 index 000000000..ca2fb845c --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_4055.tst @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2008 - DIGITEO - Allan CORNET +// Copyright (C) 2013 - Scilab Enterprises - Adeline CARNIS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 4055 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=4055 +// +// <-- Short Description --> +// From time to time, when I plot a graphic, scilab displays a blank graphic windows. + +if getos() == 'Windows' then + + if fileinfo(SCI+'\bin\jogl_cg.dll') == [] then pause,end + if fileinfo(SCI+'\bin\gluegen2-rt.dll') == [] then pause,end + + if fileinfo(SCI+'\thirdparty\gluegen2-rt.jar') == [] then pause,end + if fileinfo(SCI+'\thirdparty\jogl2.jar') == [] then pause,end + +end + diff --git a/modules/renderer/tests/nonreg_tests/bug_6532.tst b/modules/renderer/tests/nonreg_tests/bug_6532.tst new file mode 100755 index 000000000..cc675ea9f --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_6532.tst @@ -0,0 +1,39 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Pierre LANDO +// +//// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- TEST WITH GRAPHIC --> +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 6532 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=6532 +// +// <-- Short Description --> +// In some case text entity rendering order was wrong. + + +// Run this script. + + +plot(1:10); +xstring(5.5,5.5,'toto');s1=gce();s1.font_style = 9 +xstring(5,5,['qsdfsdf';'sqdsd';'QQQQQ']) +s=gce();s.box='on';s.background=color(255,255,238);s.fill_mode='on'; + +// Here you should just see a part of the last 'o' of 'toto' + + +a=gca(); +a.rotation_angles = [-1 ,270]; + +// Here you should see 'toto' + +a.rotation_angles = [0 ,270]; + +// Here you should just see a part of the last 'o' of 'toto' + diff --git a/modules/renderer/tests/nonreg_tests/bug_6558.tst b/modules/renderer/tests/nonreg_tests/bug_6558.tst new file mode 100755 index 000000000..14b25a986 --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_6558.tst @@ -0,0 +1,26 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Pierre LANDO +// +//// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- TEST WITH GRAPHIC --> +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 6558 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=6558 +// +// <-- Short Description --> +// Infinite value was not plotted even if it was possible. + + +// Run this script and see the vertical line @ x=0 + +ieee(2); +x=linspace(-1,1,501); +y= exp(8*x) + 1 ./ abs(x); +plot(x,y); + diff --git a/modules/renderer/tests/nonreg_tests/bug_6870.tst b/modules/renderer/tests/nonreg_tests/bug_6870.tst new file mode 100755 index 000000000..db809db23 --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_6870.tst @@ -0,0 +1,27 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Pierre LANDO +// +//// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- TEST WITH GRAPHIC --> +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 6870 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=6870 +// +// <-- Short Description --> +// Arrow with infinite value was not plotted even if it was possible. + + +// Run this script and see the vertical arrow @ x=0 + +ieee(2); +x=linspace(-2,2,51); +y= exp(8*x) + 1 ./ abs(x); +plot(x,y); +e=gce();e=e.children; +e.polyline_style=4; diff --git a/modules/renderer/tests/nonreg_tests/bug_7286.dia.ref b/modules/renderer/tests/nonreg_tests/bug_7286.dia.ref new file mode 100755 index 000000000..59b7b088e --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_7286.dia.ref @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Pierre LANDO +// +//// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- TEST WITH GRAPHIC --> +// +// <-- Non-regression test for bug 7286 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7286 +// +// <-- Short Description --> +// For some platform eps export of NaN values was buggy. +x = [1 2 3]; +y = [1 2 3]; +y2= [1 %nan 3]; +scf(2); +plot(x,y2,"r.");// %nan & mark_mode "on" +cd TMPDIR + ans = + + TMPDIR +xs2svg(2,"kaboom.eps"); diff --git a/modules/renderer/tests/nonreg_tests/bug_7286.tst b/modules/renderer/tests/nonreg_tests/bug_7286.tst new file mode 100755 index 000000000..7058e97fc --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_7286.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Pierre LANDO +// +//// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- TEST WITH GRAPHIC --> +// +// <-- Non-regression test for bug 7286 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7286 +// +// <-- Short Description --> +// For some platform eps export of NaN values was buggy. + + +x = [1 2 3]; +y = [1 2 3]; +y2= [1 %nan 3]; +scf(2); +plot(x,y2,"r.");// %nan & mark_mode "on" +cd TMPDIR +xs2svg(2,"kaboom.eps"); diff --git a/modules/renderer/tests/nonreg_tests/bug_7990.tst b/modules/renderer/tests/nonreg_tests/bug_7990.tst new file mode 100755 index 000000000..3b8f42d33 --- /dev/null +++ b/modules/renderer/tests/nonreg_tests/bug_7990.tst @@ -0,0 +1,25 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Pierre LANDO +// +//// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- TEST WITH GRAPHIC --> +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 7990 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7990 +// +// <-- Short Description --> +// Box thickness was badly exported in vectorial formats (svg/pdf/...) +// Thanks to Paul Griffiths for the patch. + + +// Run this script and see if the box thickness in the exported file is constant. + +scf(); x = [0:0.1:2*%pi]; plot(x, sin(x)); a = gca(); a.thickness = 5; +xs2pdf( gcf(), 'TMPDIR/test.pdf' ) + |