/* No change since we just cleared them */
CPPUNIT_ASSERT_EQUAL (false, property.changed());
-
- property->add (1, 2);
- property->add (3, 4);
+
+ property->add (1, 2, false, false);
+ property->add (3, 4, false, false);
/* Now it has changed */
CPPUNIT_ASSERT_EQUAL (true, property.changed());
/* Do some more */
property.clear_changes ();
CPPUNIT_ASSERT_EQUAL (false, property.changed());
- property->add (5, 6);
- property->add (7, 8);
+ property->add (5, 6, false, false);
+ property->add (7, 8, false, false);
CPPUNIT_ASSERT_EQUAL (true, property.changed());
+ delete foo;
foo = new XMLNode ("test");
property.get_changes_as_xml (foo);
write_automation_list_xml (foo, test_data_filename);
check_xml (foo, test_data_file2, ignore_properties);
+ delete foo;
}
/** Here's a StatefulDestructible class that has a AutomationListProperty */
boost::shared_ptr<Fred> sheila (new Fred);
/* Add some data */
- sheila->_jim->add (1, 2);
- sheila->_jim->add (3, 4);
+ sheila->_jim->add (1, 2, false, false);
+ sheila->_jim->add (3, 4, false, false);
/* Do a `command' */
sheila->clear_changes ();
- sheila->_jim->add (5, 6);
- sheila->_jim->add (7, 8);
+ sheila->_jim->add (5, 6, false, false);
+ sheila->_jim->add (7, 8, false, false);
StatefulDiffCommand sdc (sheila);
std::string test_data_filename = "automation_list_property_test3.ref";