Small html cleanup
This commit is contained in:
parent
c102ebb6da
commit
31b479e9f6
27 changed files with 330 additions and 252 deletions
|
@ -1,5 +1,6 @@
|
|||
set(PUBLISHING_UNIT_TEST_FILES
|
||||
publishing/TestPdfWriter.cpp
|
||||
publishing/TestDocumentConverter.cpp
|
||||
PARENT_SCOPE
|
||||
)
|
||||
|
||||
|
|
19
test/publishing/TestDocumentConverter.cpp
Normal file
19
test/publishing/TestDocumentConverter.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "PdfDocument.h"
|
||||
#include "PdfWriter.h"
|
||||
#include "PdfObject.h"
|
||||
#include "File.h"
|
||||
|
||||
#include "TestFramework.h"
|
||||
#include "TestUtils.h"
|
||||
|
||||
TEST_CASE(TestDocumentConverterMarkdownToPdf, "publishing")
|
||||
{
|
||||
auto document = std::make_unique<PdfDocument>();
|
||||
|
||||
PdfWriter writer;
|
||||
const auto output = writer.ToString(document);
|
||||
|
||||
File pdf_file(TestUtils::getTestOutputDir() / "TestDocumentConverterMarkdownToPdf.pdf");
|
||||
pdf_file.open(File::AccessMode::Write);
|
||||
pdf_file.writeText(output);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue