summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-29 19:33:09 +0000
committerCarl Hetherington <cth@carlh.net>2015-10-29 19:33:09 +0000
commit914bd98baa57c6f2c117e33b21a9ee3d25d0fdc2 (patch)
tree1a1c540c723566d5c009c4df210195e32e1d833f /test
parent6dc0cdbd5be3f8f60bd50523501a0bd85666ebda (diff)
Pick up SMPTE subtitle font IDs correctly.
Diffstat (limited to 'test')
-rw-r--r--test/text_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/text_test.cc b/test/text_test.cc
index a9723bb1..9fff25d6 100644
--- a/test/text_test.cc
+++ b/test/text_test.cc
@@ -31,7 +31,7 @@ BOOST_AUTO_TEST_CASE (text_test1)
text->set_attribute("VAlign", "top");
text->add_child_text("Hello world");
- dcp::TextNode t (cxml::NodePtr (new cxml::Node (text)), 250);
+ dcp::TextNode t (cxml::NodePtr (new cxml::Node (text)), 250, "Id");
BOOST_CHECK_CLOSE (t.v_position, 0.042, 0.001);
BOOST_CHECK_EQUAL (t.v_align, dcp::VALIGN_TOP);
BOOST_CHECK_EQUAL (t.text, "Hello world");
@@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE (text_test2)
text->set_attribute("Valign", "top");
text->add_child_text("Hello world");
- dcp::TextNode t (cxml::NodePtr (new cxml::Node (text)), 250);
+ dcp::TextNode t (cxml::NodePtr (new cxml::Node (text)), 250, "Id");
BOOST_CHECK_CLOSE (t.v_position, 0.042, 0.001);
BOOST_CHECK_EQUAL (t.v_align, dcp::VALIGN_TOP);
BOOST_CHECK_EQUAL (t.text, "Hello world");