summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug1321.sci
blob: 527931915cdba36c1260f6d88e8277c92c25976f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// <-- Non-regression test for bug 1321 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1321
//
// <-- Short Description -->
//    Function findobj does not work when property value contains
//    capital letters and is case sensitive for property name.

// Copyright INRIA
// Scilab Project - V. Couvert

h=figure(1);

t = uicontrol( h, "style","text", ...
  "string","This is a figure", ...
  "position",[50 70 100 100], ...
  "fontsize",15, ...
  "tag","Alabel");

correct = findobj("tag","Alabel")==t & ...
    isempty(findobj("tag","alabel")) & ...
    findobj("Tag","Alabel")==t & ...
    isempty(findobj("Tag","alabel"));

close(1);

affich_result(correct,1321);