From 7269e0e232c7971248ffa47aa2ae44786f3d303a Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Thu, 8 Jan 2015 17:20:56 +0100 Subject: slight changes to Domain and Document. Started to add a more advanced test document creation function as well as the respective domain creation functions. The DemoOutputTest for it looks good so far. --- test/plugins/html/DemoOutputTest.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test/plugins/html') diff --git a/test/plugins/html/DemoOutputTest.cpp b/test/plugins/html/DemoOutputTest.cpp index 6123c79..7857314 100644 --- a/test/plugins/html/DemoOutputTest.cpp +++ b/test/plugins/html/DemoOutputTest.cpp @@ -25,6 +25,7 @@ #include #include +#include #include #include @@ -37,17 +38,20 @@ TEST(DemoHTMLTransformer, writeHTML) Logger logger; Manager mgr{1}; Rooted sys{new model::SystemTypesystem(mgr)}; - // Get the domain. - Rooted domain = constructBookDomain(mgr, sys, logger); + // Get the domains. + Rooted bookDom = + model::constructBookDomain(mgr, sys, logger); + Rooted headingDom = + model::constructHeadingDomain(mgr, sys, bookDom, logger); // Construct the document. - Rooted doc = model::constructBookDocument(mgr, domain); + Rooted doc = model::constructAdvancedDocument(mgr, bookDom, headingDom); #ifdef MANAGER_GRAPHVIZ_EXPORT // dump the manager state mgr.exportGraphviz("bookDocument.dot"); #endif - // print it + // TODO: change this. Don't use printouts DemoHTMLTransformer transformer; transformer.writeHTML(doc, std::cout); } -- cgit v1.2.3