summaryrefslogtreecommitdiff
path: root/test/plugins/html/DemoOutputTest.cpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-08 17:20:56 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-08 17:20:56 +0100
commit7269e0e232c7971248ffa47aa2ae44786f3d303a (patch)
treeeabdb8a545efd86a3aab3f63deb806e33f08d7a0 /test/plugins/html/DemoOutputTest.cpp
parent33b92b72ed160f22dc627e841d5f84de4ebc0c6c (diff)
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.
Diffstat (limited to 'test/plugins/html/DemoOutputTest.cpp')
-rw-r--r--test/plugins/html/DemoOutputTest.cpp12
1 files changed, 8 insertions, 4 deletions
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 <core/model/Document.hpp>
#include <core/model/Domain.hpp>
+#include <core/model/TestAdvanced.hpp>
#include <core/model/TestDocument.hpp>
#include <core/model/TestDomain.hpp>
@@ -37,17 +38,20 @@ TEST(DemoHTMLTransformer, writeHTML)
Logger logger;
Manager mgr{1};
Rooted<model::SystemTypesystem> sys{new model::SystemTypesystem(mgr)};
- // Get the domain.
- Rooted<model::Domain> domain = constructBookDomain(mgr, sys, logger);
+ // Get the domains.
+ Rooted<model::Domain> bookDom =
+ model::constructBookDomain(mgr, sys, logger);
+ Rooted<model::Domain> headingDom =
+ model::constructHeadingDomain(mgr, sys, bookDom, logger);
// Construct the document.
- Rooted<model::Document> doc = model::constructBookDocument(mgr, domain);
+ Rooted<model::Document> 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);
}