Unit-test update: honor FadeInAutomation parameter-range
Since 3d15499cda, libevoral enforces Parameter min/max
range. Ardour::ParameterDescriptor sets FadeInAutomation range to 0..2.
Hence all unit-test data needs to be in this range.
This commit is contained in:
@@ -61,8 +61,8 @@ AutomationListPropertyTest::basicTest ()
|
||||
/* No change since we just cleared them */
|
||||
CPPUNIT_ASSERT_EQUAL (false, property.changed());
|
||||
|
||||
property->add (1, 2, false, false);
|
||||
property->add (3, 4, false, false);
|
||||
property->add (1, 0.5, false, false);
|
||||
property->add (3, 2.0, false, false);
|
||||
|
||||
/* Now it has changed */
|
||||
CPPUNIT_ASSERT_EQUAL (true, property.changed());
|
||||
@@ -83,8 +83,8 @@ AutomationListPropertyTest::basicTest ()
|
||||
/* Do some more */
|
||||
property.clear_changes ();
|
||||
CPPUNIT_ASSERT_EQUAL (false, property.changed());
|
||||
property->add (5, 6, false, false);
|
||||
property->add (7, 8, false, false);
|
||||
property->add (5, 1.5, false, false);
|
||||
property->add (7, 1.0, false, false);
|
||||
CPPUNIT_ASSERT_EQUAL (true, property.changed());
|
||||
delete foo;
|
||||
foo = new XMLNode ("test");
|
||||
@@ -137,13 +137,13 @@ AutomationListPropertyTest::undoTest ()
|
||||
boost::shared_ptr<Fred> sheila (new Fred);
|
||||
|
||||
/* Add some data */
|
||||
sheila->_jim->add (0, 1, false, false);
|
||||
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, false, false);
|
||||
sheila->_jim->add (7, 8, false, false);
|
||||
sheila->_jim->add (2, 1, false, false);
|
||||
sheila->_jim->add (3, 0, false, false);
|
||||
StatefulDiffCommand sdc (sheila);
|
||||
|
||||
std::string test_data_filename = "automation_list_property_test3.ref";
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
</from>
|
||||
<to>
|
||||
<AutomationList automation-id="fadein" id="163" interpolation-style="Linear" state="Off">
|
||||
<events>1 2
|
||||
3 4
|
||||
<events>1 0.5
|
||||
3 2
|
||||
</events>
|
||||
</AutomationList>
|
||||
</to>
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
<FadeIn>
|
||||
<from>
|
||||
<AutomationList automation-id="fadein" id="165" interpolation-style="Linear" state="Off">
|
||||
<events>1 2
|
||||
3 4
|
||||
<events>1 0.5
|
||||
3 2
|
||||
</events>
|
||||
</AutomationList>
|
||||
</from>
|
||||
<to>
|
||||
<AutomationList automation-id="fadein" id="163" interpolation-style="Linear" state="Off">
|
||||
<events>1 2
|
||||
3 4
|
||||
5 6
|
||||
7 8
|
||||
<events>1 0.5
|
||||
3 2
|
||||
5 1.5
|
||||
7 1
|
||||
</events>
|
||||
</AutomationList>
|
||||
</to>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<State>
|
||||
<FadeIn>
|
||||
<AutomationList automation-id="fadein" id="167" interpolation-style="Linear" state="Off">
|
||||
<events>1 2
|
||||
3 4
|
||||
<events>0 1
|
||||
1 2
|
||||
</events>
|
||||
</AutomationList>
|
||||
</FadeIn>
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
<State>
|
||||
<FadeIn>
|
||||
<AutomationList automation-id="fadein" id="167" interpolation-style="Linear" state="Off">
|
||||
<events>1 2
|
||||
3 4
|
||||
5 6
|
||||
7 8
|
||||
<events>0 1
|
||||
1 2
|
||||
2 1
|
||||
3 0
|
||||
</events>
|
||||
</AutomationList>
|
||||
</FadeIn>
|
||||
|
||||
Reference in New Issue
Block a user