Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / qa / extras / docbookexport / docbookexport.cxx
blob74241d353d338d5dc67fa85bbb6a8a5486e3e865
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #include <swmodeltestbase.hxx>
12 class DocbookExportTest : public SwModelTestBase
14 public:
15 DocbookExportTest() :
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);
25 CPPUNIT_ASSERT(pDoc);
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);
34 CPPUNIT_ASSERT(pDoc);
38 CPPUNIT_PLUGIN_IMPLEMENT();
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */