simgear/props/props_test.cxx: use VALUE_CHANGED_DOWN to make tests pass.
This checks old behaviour works. Need to add tests of the new default behaviour where property changes do not call parent nodes' listeners.
This commit is contained in:
parent
087d04db8e
commit
16778e5c02
@ -660,6 +660,7 @@ void testListener()
|
||||
// recursive listen
|
||||
{
|
||||
TestListener l(tree.get(), true /* recursive */);
|
||||
tree->setAttribute(SGPropertyNode::VALUE_CHANGED_DOWN, true);
|
||||
tree->getNode("position/body")->addChangeListener(&l);
|
||||
tree->getNode("controls/")->addChangeListener(&l);
|
||||
|
||||
@ -919,7 +920,7 @@ void testDeleterListener()
|
||||
{
|
||||
SGPropertyNode_ptr tree = new SGPropertyNode;
|
||||
defineSamplePropertyTree(tree);
|
||||
|
||||
tree->setAttribute(SGPropertyNode::VALUE_CHANGED_DOWN, true);
|
||||
|
||||
// recursive listen
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user