1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #include <swmodeltestbase.hxx>
12 class DocbookExportTest
: public SwModelTestBase
16 SwModelTestBase("/sw/qa/extras/docbookexport/data/", "DocBook File")
20 #define DECLARE_DOCBOOKEXPORT_TEST(TestName, filename) DECLARE_SW_EXPORT_TEST(TestName, filename, nullptr, DocbookExportTest)
22 DECLARE_DOCBOOKEXPORT_TEST(testsimple
, "simple.docx")
24 xmlDocUniquePtr pDoc
= parseXml(maTempFile
);
27 assertXPathContent(pDoc
, "/article/para", "aaaa");
30 /* the test actually should crash with this file */
31 DECLARE_DOCBOOKEXPORT_TEST(testtdf91095
, "tdf91095.docx")
33 xmlDocUniquePtr pDoc
= parseXml(maTempFile
);
38 CPPUNIT_PLUGIN_IMPLEMENT();
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */