[graphics] fix tests
[scilab.git] / scilab / modules / graphics / tests / nonreg_tests / bug_9052.tst
1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2014 - Scilab Enterprises - Charlotte HECQUET
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 9052 -->
12 //
13 // <-- Bugzilla URL -->
14 // http://bugzilla.scilab.org/9052
15 //
16 // <-- Short Description -->
17 // All demos in graphics/animations are automatically closed at the end of each one
18
19 xdel(winsid());
20 path_demo = fullfile(SCI,"modules","graphics","demos","anim","anim1","anim1.sce");
21 exec(path_demo,-1);
22 assert_checkequal(winsid(), 100001);
23 xdel(winsid());
24 path_demo = fullfile(SCI,"modules","graphics","demos","anim","anim2","anim2.sce");
25 exec(path_demo,-1);
26 assert_checkequal(winsid(), 100001);
27 xdel(winsid());
28 path_demo = fullfile(SCI,"modules","graphics","demos","anim","anim3","anim3.sce");
29 exec(path_demo,-1);
30 assert_checkequal(winsid(), 100001);
31 xdel(winsid());
32 path_demo = fullfile(SCI,"modules","graphics","demos","anim","anim4","anim4.sce");
33 exec(path_demo,-1);
34 assert_checkequal(winsid(), 100001);
35 xdel(winsid());
36 path_demo = fullfile(SCI,"modules","graphics","demos","anim","anim5","anim5.sce");
37 exec(path_demo,-1);
38 assert_checkequal(winsid(), 100001);
39 xdel(winsid());
40 path_demo = fullfile(SCI,"modules","graphics","demos","anim","anim6","anim6.sce");
41 exec(path_demo,-1);
42 assert_checkequal(winsid(), 100001);
43 xdel(winsid());
44 path_demo = fullfile(SCI,"modules","graphics","demos","anim","anim7","anim7.sce");
45 exec(path_demo,-1);
46 assert_checkequal(winsid(), 100001);
47 xdel(winsid());
48 path_demo = fullfile(SCI,"modules","graphics","demos","anim","anim8","anim8.sci");
49 exec(path_demo,-1);
50 demo_riemann();
51 assert_checkequal(winsid(), 100001);
52 xdel(winsid());
53 path_demo = fullfile(SCI,"modules","graphics","demos","anim","bubbleSort","bubbleSort.sci");
54 exec(path_demo,-1);
55 demo_bubbleSort();
56 assert_checkequal(winsid(), 100001);