From 23dc906f951e853b07985d0f923d8f4de473b25c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 1 Dec 2014 00:29:28 +0000 Subject: Tweaks to vertical positioning in STL export. --- test/dcp_to_stl_binary_test.cc | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'test') diff --git a/test/dcp_to_stl_binary_test.cc b/test/dcp_to_stl_binary_test.cc index 9512262..b590991 100644 --- a/test/dcp_to_stl_binary_test.cc +++ b/test/dcp_to_stl_binary_test.cc @@ -82,3 +82,31 @@ BOOST_AUTO_TEST_CASE (dcp_to_stl_binary_test2) "build/test/93e8a6bf-499e-4d36-9350-a9bfa2e6758a_sub.stl" ); } + +BOOST_AUTO_TEST_CASE (dcp_to_stl_binary_test3) +{ + if (private_test.empty ()) { + return; + } + + boost::filesystem::path p = private_test / "Paddington_FTR_Subs_DE-FR_24fps_R1.xml"; + ifstream f (p.string().c_str ()); + sub::write_stl_binary ( + sub::collect > (sub::DCPReader(f).subtitles ()), + 25, + sub::LANGUAGE_FRENCH, + "", "", + "", "", + "", "", + "300514", "300514", 0, + "GBR", + "", + "", "", + "build/test/Paddington_FTR_Subs_DE-FR_24fps_R1.stl" + ); + + check_file ( + private_test / "Paddington_FTR_Subs_DE-FR_24fps_R1.stl", + "build/test/Paddington_FTR_Subs_DE-FR_24fps_R1.stl" + ); +} -- cgit v1.2.3