[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #37645] "set" function not properly working wi
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input. |
Date: |
Mon, 19 Nov 2012 22:21:54 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.26.17 (KHTML, like Gecko) Version/6.0.2 Safari/536.26.17 |
Follow-up Comment #13, bug #37645 (project octave):
Confirmed. Ok to add the test below to the changeset?
%!test
%! markchanged = @(h, foobar, name) set (h, "userdata", [get(h,"userdata");
{name}]);
%! figure (1, "visible", "off")
%! clf ()
%! h = line ();
%! set (h, "userdata", {})
%! addlistener (h, "color", {markchanged, "color"})
%! addlistener (h, "linewidth", {markchanged, "linewidth"})
%! # linewidth first
%! props.linewidth = 2;
%! props.color = "r";
%! set (h, props);
%! assert (get (h, "userdata"), fieldnames (props))
%! clear props
%! clf ()
%! h = line ();
%! set (h, "userdata", {})
%! addlistener (h, "color", {markchanged, "color"})
%! addlistener (h, "linewidth", {markchanged, "linewidth"})
%! # color first
%! props.color = "r";
%! props.linewidth = 2;
%! set (h, props);
%! assert (get (h, "userdata"), fieldnames (props))
%! close (1)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37645>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Ben Abbott, 2012/11/16
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Pantxo Diribarne, 2012/11/19
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Ben Abbott, 2012/11/19
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Pantxo Diribarne, 2012/11/19
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Jordi GutiƩrrez Hermoso, 2012/11/19
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Pantxo Diribarne, 2012/11/19
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Jordi GutiƩrrez Hermoso, 2012/11/19
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Pantxo Diribarne, 2012/11/19
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input.,
Ben Abbott <=
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Ben Abbott, 2012/11/19
- [Octave-bug-tracker] [bug #37645] "set" function not properly working with prop/val structure input., Pantxo Diribarne, 2012/11/19