Ignore:
Timestamp:
2015-04-09T20:37:45+02:00 (9 years ago)
Author:
adrpo
Message:

Fix bug #3255

  • append the annotation from the constrained class to the annotations of the component
  • added test inside testsuite/openmodelica/interactive-API/choicesAllMatching.mos
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testsuite/openmodelica/interactive-API/choicesAllMatching.mos

    r25345 r25478  
    1 // name: choicesAllMatching.mos [BUG: #3254]
     1// name: choicesAllMatching.mos [BUG: #3254, #3255]
    22// keywords: Graphical API, component annotations
    33// status: correct
     
    1818getErrorString();
    1919
     20loadString("model M
     21  type N = Real;
     22  replaceable N n1 constrainedby Real annotation(choicesAllMatching=true,Placement(visible = true, transformation(origin = {-30, 42}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
     23end M;");
     24getErrorString();
     25getComponentAnnotations(M);
     26getErrorString();
     27
     28
    2029// Result:
    2130// true
     
    2736// {{choicesAllMatching=true, Placement(true,-30.0,42.0,-10.0,-10.0,10.0,10.0,0.0,-,-,-,-,-,-,)}}
    2837// ""
     38// true
     39// ""
     40// {{choicesAllMatching=true, Placement(true,-30.0,42.0,-10.0,-10.0,10.0,10.0,0.0,-,-,-,-,-,-,)}}
     41// ""
    2942// endResult
Note: See TracChangeset for help on using the changeset viewer.