summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/cpl_sar_test.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/cpl_sar_test.cc b/test/cpl_sar_test.cc
index 59a91c84..ca2e3693 100644
--- a/test/cpl_sar_test.cc
+++ b/test/cpl_sar_test.cc
@@ -39,21 +39,19 @@ BOOST_AUTO_TEST_CASE (cpl_sar)
{
pa->set_screen_aspect_ratio (dcp::Fraction (1998, 1080));
- xmlpp::Document doc;
- xmlpp::Element* el = doc.create_root_node ("Test");
+ cxml::NodePtr el (new cxml::Node);
+ el->set_name ("Test");
pa->write_to_cpl (el, dcp::INTEROP);
- cxml::Node node (el);
- BOOST_CHECK_EQUAL (node.node_child("MainPicture")->string_child ("ScreenAspectRatio"), "1.85");
+ BOOST_CHECK_EQUAL (el->child("MainPicture")->string_child ("ScreenAspectRatio"), "1.85");
}
{
pa->set_screen_aspect_ratio (dcp::Fraction (2048, 858));
- xmlpp::Document doc;
- xmlpp::Element* el = doc.create_root_node ("Test");
+ cxml::NodePtr el (new cxml::Node);
+ el->set_name ("Test");
pa->write_to_cpl (el, dcp::INTEROP);
- cxml::Node node (el);
- BOOST_CHECK_EQUAL (node.node_child("MainPicture")->string_child ("ScreenAspectRatio"), "2.39");
+ BOOST_CHECK_EQUAL (el->child("MainPicture")->string_child ("ScreenAspectRatio"), "2.39");
}
}