From 579b0e14d3bc1345512cac00a83159569cfcfa00 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 10 Apr 2015 14:31:46 +0200 Subject: Use "emph" instead of "emphasized" for the demo html output, adapt unit tests accordingly --- test/plugins/xml/XmlOutputTest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/plugins/xml') diff --git a/test/plugins/xml/XmlOutputTest.cpp b/test/plugins/xml/XmlOutputTest.cpp index ac80a57..92d8a85 100644 --- a/test/plugins/xml/XmlOutputTest.cpp +++ b/test/plugins/xml/XmlOutputTest.cpp @@ -91,7 +91,7 @@ TEST(DemoHTMLTransformer, AnnotationProcessing) Rooted em_end{new Anchor(mgr, p)}; ASSERT_TRUE(addText(logger, doc, p, "bla")); Rooted strong_end{new Anchor(mgr, p)}; - buildAnnotationEntity(doc, logger, {"emphasized"}, em_start, em_end); + buildAnnotationEntity(doc, logger, {"emph"}, em_start, em_end); buildAnnotationEntity(doc, logger, {"strong"}, strong_start, strong_end); // Check serialization. @@ -103,9 +103,9 @@ TEST(DemoHTMLTransformer, AnnotationProcessing) // In HTML the overlapping structure must be serialized as follows: ASSERT_TRUE( res.find( - "blablubbla") != std::string::npos); + "bla" + "blub" + "bla") != std::string::npos); } TEST(DemoHTMLTransformer, PrimitiveSubtreeFields) @@ -148,4 +148,4 @@ TEST(DemoHTMLTransformer, PrimitiveSubtreeFields) std::string::npos); } } -} \ No newline at end of file +} -- cgit v1.2.3