From cbdb96e4bb93c409fca737b1a5141ab3d48fb30e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 20 Oct 2022 23:55:24 +0200 Subject: Add a couple of Z position tests. --- test/smpte_subtitle_test.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/smpte_subtitle_test.cc b/test/smpte_subtitle_test.cc index cfea04c4..b59d6020 100644 --- a/test/smpte_subtitle_test.cc +++ b/test/smpte_subtitle_test.cc @@ -195,7 +195,7 @@ BOOST_AUTO_TEST_CASE (write_smpte_subtitle_test) dcp::HAlign::CENTER, 0.8, dcp::VAlign::TOP, - 0, + 0.3, dcp::Direction::LTR, "Hello world", dcp::Effect::NONE, @@ -273,7 +273,7 @@ BOOST_AUTO_TEST_CASE (write_smpte_subtitle_test) " \n" " \n" " \n" - " Hello world\n" + " Hello world\n" " \n" " \n" " \n" @@ -501,7 +501,7 @@ BOOST_AUTO_TEST_CASE (write_smpte_subtitle_test3) dcp::HAlign::CENTER, 0.8, dcp::VAlign::TOP, - 0, + -88, dcp::Time (0, 0, 0, 0, 24), dcp::Time (0, 0, 0, 0, 24) ) @@ -526,6 +526,7 @@ BOOST_AUTO_TEST_CASE (write_smpte_subtitle_test3) BOOST_CHECK (image->h_align() == dcp::HAlign::CENTER); BOOST_CHECK_CLOSE (image->v_position(), 0.8, 1); BOOST_CHECK (image->v_align() == dcp::VAlign::TOP); + BOOST_CHECK_EQUAL(image->z_position(), -88); BOOST_CHECK (image->fade_up_time() == dcp::Time(0, 0, 0, 0, 24)); BOOST_CHECK (image->fade_down_time() == dcp::Time(0, 0, 0, 0, 24)); } -- cgit v1.2.3