summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-24 12:12:23 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-24 12:12:23 +0100
commitdb536bd9f9f16b79286c5f0bb54d0f283050f7dd (patch)
treefafae4349032739326592dfaa18d6b499c743f6c /test
parenta5bf0e4edbdbf7a0818666313b1d3909986342f1 (diff)
Express standard differences in FontNode more neatly.
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 23a3ae77..1c0cf9c4 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, "Id");
+ dcp::TextNode t (cxml::NodePtr (new cxml::Node (text)), 250, dcp::INTEROP);
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, "Id");
+ dcp::TextNode t (cxml::NodePtr (new cxml::Node (text)), 250, dcp::INTEROP);
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");