From 772444d769f02550667e6974cc8467d913dda99e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 5 Sep 2019 21:03:50 +0200 Subject: Unit-test update: honor FadeInAutomation parameter-range Since 3d15499cdacacbafa32c8f, 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. --- libs/ardour/test/automation_list_property_test.cc | 14 +++++++------- libs/ardour/test/data/automation_list_property_test1.ref | 4 ++-- libs/ardour/test/data/automation_list_property_test2.ref | 12 ++++++------ libs/ardour/test/data/automation_list_property_test3.ref | 4 ++-- libs/ardour/test/data/automation_list_property_test4.ref | 8 ++++---- 5 files changed, 21 insertions(+), 21 deletions(-) (limited to 'libs/ardour/test') diff --git a/libs/ardour/test/automation_list_property_test.cc b/libs/ardour/test/automation_list_property_test.cc index 9ad5fb2ff6..41d56859fe 100644 --- a/libs/ardour/test/automation_list_property_test.cc +++ b/libs/ardour/test/automation_list_property_test.cc @@ -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 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"; diff --git a/libs/ardour/test/data/automation_list_property_test1.ref b/libs/ardour/test/data/automation_list_property_test1.ref index 9dad38b454..d15e7e2947 100644 --- a/libs/ardour/test/data/automation_list_property_test1.ref +++ b/libs/ardour/test/data/automation_list_property_test1.ref @@ -6,8 +6,8 @@ - 1 2 -3 4 + 1 0.5 +3 2 diff --git a/libs/ardour/test/data/automation_list_property_test2.ref b/libs/ardour/test/data/automation_list_property_test2.ref index 358782ae17..89549f7428 100644 --- a/libs/ardour/test/data/automation_list_property_test2.ref +++ b/libs/ardour/test/data/automation_list_property_test2.ref @@ -3,17 +3,17 @@ - 1 2 -3 4 + 1 0.5 +3 2 - 1 2 -3 4 -5 6 -7 8 + 1 0.5 +3 2 +5 1.5 +7 1 diff --git a/libs/ardour/test/data/automation_list_property_test3.ref b/libs/ardour/test/data/automation_list_property_test3.ref index 7f091bea26..b39c592f42 100644 --- a/libs/ardour/test/data/automation_list_property_test3.ref +++ b/libs/ardour/test/data/automation_list_property_test3.ref @@ -2,8 +2,8 @@ - 1 2 -3 4 + 0 1 +1 2 diff --git a/libs/ardour/test/data/automation_list_property_test4.ref b/libs/ardour/test/data/automation_list_property_test4.ref index f003bb646f..59ec993c08 100644 --- a/libs/ardour/test/data/automation_list_property_test4.ref +++ b/libs/ardour/test/data/automation_list_property_test4.ref @@ -2,10 +2,10 @@ - 1 2 -3 4 -5 6 -7 8 + 0 1 +1 2 +2 1 +3 0 -- cgit v1.2.3