From 16778e5c025c12c4e7185eb0401da7945fda84eb Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Thu, 3 Jun 2021 23:11:32 +0100 Subject: [PATCH] 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. --- simgear/props/props_test.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simgear/props/props_test.cxx b/simgear/props/props_test.cxx index f4b6c6fe..5d90aee0 100644 --- a/simgear/props/props_test.cxx +++ b/simgear/props/props_test.cxx @@ -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 {