diff options
| author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-04 22:21:52 +0100 | 
|---|---|---|
| committer | Andreas Stöckel <andreas@somweyr.de> | 2015-01-04 22:21:52 +0100 | 
| commit | 0d671f899da720ff5035bdab7adf6b11cbf80cb1 (patch) | |
| tree | 9839d502ff323198d0f9cb479e9809a978c5c550 /test/plugins | |
| parent | 7e1c72a5a5d5dc890a49f79c5daec3edcb38a33b (diff) | |
| parent | 319ad738f677a20403cc27192f1df7bb65ce8c0e (diff) | |
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'test/plugins')
| -rw-r--r-- | test/plugins/html/DemoOutputTest.cpp | 49 | 
1 files changed, 49 insertions, 0 deletions
diff --git a/test/plugins/html/DemoOutputTest.cpp b/test/plugins/html/DemoOutputTest.cpp new file mode 100644 index 0000000..b81a001 --- /dev/null +++ b/test/plugins/html/DemoOutputTest.cpp @@ -0,0 +1,49 @@ +/* +    Ousía +    Copyright (C) 2014, 2015  Benjamin Paaßen, Andreas Stöckel + +    This program is free software: you can redistribute it and/or modify +    it under the terms of the GNU General Public License as published by +    the Free Software Foundation, either version 3 of the License, or +    (at your option) any later version. + +    This program is distributed in the hope that it will be useful, +    but WITHOUT ANY WARRANTY; without even the implied warranty of +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +    GNU General Public License for more details. + +    You should have received a copy of the GNU General Public License +    along with this program.  If not, see <http://www.gnu.org/licenses/>. +*/ + +#include <gtest/gtest.h> + +#include <iostream> + +#include <plugins/html/DemoOutput.hpp> + +#include <core/model/Document.hpp> +#include <core/model/Domain.hpp> + +#include <core/model/TestDocument.hpp> +#include <core/model/TestDomain.hpp> + +namespace ousia { +namespace html { + +TEST(DemoHTMLTransformer, writeHTML) +{ +	// Construct Manager +	Logger logger; +	Manager mgr{1}; +	// Get the domain. +	Rooted<model::Domain> domain = model::constructBookDomain(mgr, logger); +	// Construct the document. +	Rooted<model::Document> doc = model::constructBookDocument(mgr, domain); + +	// print it +	DemoHTMLTransformer transformer; +	transformer.writeHTML(doc, std::cout); +} +} +}  | 
