~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/xcos/tests/nonreg_tests/bug_11554.dia.ref

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// =============================================================================
 
2
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 
3
// Copyright (C) 2012 - Scilab Enterprises - Clément DAVID
 
4
//
 
5
//  This file is distributed under the same license as the Scilab package.
 
6
// =============================================================================
 
7
// <-- TEST WITH XCOS -->
 
8
//
 
9
// <-- Non-regression test for bug 11554 -->
 
10
//
 
11
// <-- Bugzilla URL -->
 
12
// http://bugzilla.scilab.org/show_bug.cgi?id=11554
 
13
//
 
14
// <-- Short Description -->
 
15
// quit report an error after loading xcos_toolbox_skeleton.
 
16
// avoid building the xcos toolbox skeleton by calling xcosPalAdd(...)
 
17
loadXcosLibs();
 
18
function [x,y,typ]=MY_BLOCK(job,arg1,arg2)
 
19
    x=[];y=[];typ=[];
 
20
    select job
 
21
    case 'set' then
 
22
        x=arg1;
 
23
    case 'define' then
 
24
        model=scicos_model()
 
25
        model.sim=list('my_block',4)
 
26
        exprs=''
 
27
        gr_i=''
 
28
        x=standard_define([3 2],model,exprs,gr_i)
 
29
    end
 
30
endfunction
 
31
block_img = SCI + "/modules/xcos/images/blocks/RAMP.svg";
 
32
pal_block_img = SCI + "/modules/xcos/images/palettes/RAMP.png";
 
33
pal = xcosPal("My palette");
 
34
pal = xcosPalAddBlock(pal, 'MY_BLOCK', pal_block_img, block_img);
 
35
xcosPalAdd(pal);
 
36
quit();
 
37
exec('SCI/etc/scilab.quit',-1);quit;