From 1eece2559a6cf16f5732d128c1cb6e43c5f60fbc Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 9 Jan 2015 15:28:13 +0100 Subject: Refactored building convenience methods to TestDocumentBuilder, added error logging and changed TestDocument and TestAdvanced as well as all users of those files accordingly. --- test/plugins/html/DemoOutputTest.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test/plugins/html/DemoOutputTest.cpp') diff --git a/test/plugins/html/DemoOutputTest.cpp b/test/plugins/html/DemoOutputTest.cpp index 36b53b4..4ab2c53 100644 --- a/test/plugins/html/DemoOutputTest.cpp +++ b/test/plugins/html/DemoOutputTest.cpp @@ -26,7 +26,6 @@ #include #include -#include #include namespace ousia { @@ -35,7 +34,7 @@ namespace html { TEST(DemoHTMLTransformer, writeHTML) { // Construct Manager - Logger logger; + TerminalLogger logger{std::cerr, true}; Manager mgr{1}; Rooted sys{new model::SystemTypesystem(mgr)}; // Get the domains. @@ -48,8 +47,8 @@ TEST(DemoHTMLTransformer, writeHTML) Rooted emDom = model::constructEmphasisDomain(mgr, sys, logger); // Construct the document. - Rooted doc = - model::constructAdvancedDocument(mgr, bookDom, headingDom, listDom); + Rooted doc = model::constructAdvancedDocument( + mgr, logger, bookDom, headingDom, listDom, emDom); #ifdef MANAGER_GRAPHVIZ_EXPORT // dump the manager state -- cgit v1.2.3