diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-25 20:53:27 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-25 20:53:27 +0000 |
commit | b92ebde801af5c499d16258860ee7a16da9623c4 (patch) | |
tree | 82a79fb49a68636847b7eb0477c4c870a1e89594 /libs/pbd/test/scalar_properties.cc | |
parent | 1c7ac48d53a2ee4f0a9235a7093da8cbada6d626 (diff) |
Fix test.
git-svn-id: svn://localhost/ardour2/branches/3.0@7691 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/test/scalar_properties.cc')
-rw-r--r-- | libs/pbd/test/scalar_properties.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libs/pbd/test/scalar_properties.cc b/libs/pbd/test/scalar_properties.cc index cd736b14d3..8a28db40c2 100644 --- a/libs/pbd/test/scalar_properties.cc +++ b/libs/pbd/test/scalar_properties.cc @@ -36,18 +36,12 @@ ScalarPropertiesTest::testBasic () CPPUNIT_ASSERT (_fred == 5); CPPUNIT_ASSERT (_fred.changed() == true); - PropertyList undo; - PropertyList redo; - _fred.diff (undo, redo, 0); + PropertyList changes; + _fred.get_changes_as_properties (changes, 0); - CPPUNIT_ASSERT (undo.size() == 1); - CPPUNIT_ASSERT (redo.size() == 1); + CPPUNIT_ASSERT (changes.size() == 1); - PropertyTemplate<int>* t = dynamic_cast<Property<int>*> (undo.begin()->second); + PropertyTemplate<int>* t = dynamic_cast<Property<int>*> (changes.begin()->second); CPPUNIT_ASSERT (t); CPPUNIT_ASSERT (t->val() == 4); - - t = dynamic_cast<Property<int>*> (redo.begin()->second); - CPPUNIT_ASSERT (t); - CPPUNIT_ASSERT (t->val() == 5); } |