summaryrefslogtreecommitdiff
path: root/test/interop_subtitle_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/interop_subtitle_test.cc')
-rw-r--r--test/interop_subtitle_test.cc31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/interop_subtitle_test.cc b/test/interop_subtitle_test.cc
index 2d7f4a43..27dcaf23 100644
--- a/test/interop_subtitle_test.cc
+++ b/test/interop_subtitle_test.cc
@@ -46,6 +46,7 @@ using std::dynamic_pointer_cast;
using std::shared_ptr;
using std::string;
using std::vector;
+using boost::optional;
/** Load some subtitle content from Interop XML and check that it is read correctly */
@@ -83,6 +84,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test1)
0.15,
dcp::VAlign::BOTTOM,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"My jacket was ",
dcp::Effect::BORDER,
@@ -108,6 +110,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test1)
0.15,
dcp::VAlign::BOTTOM,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"Idi Amin's",
dcp::Effect::BORDER,
@@ -136,6 +139,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test1)
0.21,
dcp::VAlign::BOTTOM,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"My corset was H.M. The Queen's",
dcp::Effect::BORDER,
@@ -161,6 +165,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test1)
0.15,
dcp::VAlign::BOTTOM,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"My large wonderbra",
dcp::Effect::BORDER,
@@ -189,6 +194,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test1)
0.15,
dcp::VAlign::BOTTOM,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"Once belonged to the Shah",
dcp::Effect::BORDER,
@@ -217,6 +223,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test1)
0.15,
dcp::VAlign::BOTTOM,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"And these are Roy Hattersley's jeans",
dcp::Effect::BORDER,
@@ -251,6 +258,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.89,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"At afternoon tea with John Peel",
dcp::Effect::BORDER,
@@ -276,6 +284,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.95,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"I enquired if his accent was real",
dcp::Effect::BORDER,
@@ -304,6 +313,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.89,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"He said \"out of the house",
dcp::Effect::BORDER,
@@ -329,6 +339,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.95,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"I'm incredibly scouse",
dcp::Effect::BORDER,
@@ -357,6 +368,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.89,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"At home it depends how I feel.\"",
dcp::Effect::BORDER,
@@ -382,6 +394,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.95,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"I spent a long weekend in Brighton",
dcp::Effect::BORDER,
@@ -410,6 +423,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.89,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::RTL,
"With the legendary Miss Enid Blyton",
dcp::Effect::BORDER,
@@ -435,6 +449,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.95,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::TTB,
"She said \"you be Noddy",
dcp::Effect::BORDER,
@@ -463,6 +478,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.89,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::BTT,
"That curious creature the Sphinx",
dcp::Effect::BORDER,
@@ -488,6 +504,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.95,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"Is smarter than anyone thinks",
dcp::Effect::BORDER,
@@ -516,6 +533,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.89,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"It sits there and smirks",
dcp::Effect::BORDER,
@@ -541,6 +559,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.95,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"And you don't think it works",
dcp::Effect::BORDER,
@@ -569,6 +588,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.89,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"Then when you're not looking, it winks.",
dcp::Effect::BORDER,
@@ -594,6 +614,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.95,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"When it snows you will find Sister Sledge",
dcp::Effect::BORDER,
@@ -622,6 +643,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.89,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"Out mooning, at night, on the ledge",
dcp::Effect::BORDER,
@@ -647,6 +669,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.95,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"One storey down",
dcp::Effect::BORDER,
@@ -675,6 +698,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.89,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"HELLO",
dcp::Effect::BORDER,
@@ -700,6 +724,7 @@ BOOST_AUTO_TEST_CASE (read_interop_subtitle_test2)
0.95,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"WORLD",
dcp::Effect::BORDER,
@@ -747,6 +772,7 @@ BOOST_AUTO_TEST_CASE (write_interop_subtitle_test)
0.8,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"Hello world",
dcp::Effect::NONE,
@@ -774,6 +800,7 @@ BOOST_AUTO_TEST_CASE (write_interop_subtitle_test)
0.4,
dcp::VAlign::BOTTOM,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"What's going ",
dcp::Effect::BORDER,
@@ -801,6 +828,7 @@ BOOST_AUTO_TEST_CASE (write_interop_subtitle_test)
0.4,
dcp::VAlign::BOTTOM,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"on",
dcp::Effect::BORDER,
@@ -862,6 +890,7 @@ BOOST_AUTO_TEST_CASE (write_interop_subtitle_test2)
0.8,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"Hello world",
dcp::Effect::NONE,
@@ -889,6 +918,7 @@ BOOST_AUTO_TEST_CASE (write_interop_subtitle_test2)
0.4,
dcp::VAlign::BOTTOM,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Direction::LTR,
"What's going on",
dcp::Effect::BORDER,
@@ -944,6 +974,7 @@ BOOST_AUTO_TEST_CASE (write_interop_subtitle_test3)
0.8,
dcp::VAlign::TOP,
0,
+ vector<dcp::Text::VariableZPosition>(),
dcp::Time (0, 0, 0, 0, 24),
dcp::Time (0, 0, 0, 0, 24)
)