summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-01 00:29:28 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-01 00:29:28 +0000
commit23dc906f951e853b07985d0f923d8f4de473b25c (patch)
tree4b058af6d6b71cb2fd60fa55ac8ff32f288909ca /test
parentf3f1c965337fc6e4a269f4567676b389c869b03d (diff)
Tweaks to vertical positioning in STL export.
Diffstat (limited to 'test')
-rw-r--r--test/dcp_to_stl_binary_test.cc28
1 files changed, 28 insertions, 0 deletions
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<list<sub::Subtitle> > (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"
+ );
+}