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>
11 #include <o3tl/string_view.hxx>
13 class Test
: public SwModelTestBase
17 : SwModelTestBase("/sw/qa/extras/ooxmlexport/data/", "MS Word 2007 XML Template")
22 CPPUNIT_TEST_FIXTURE(Test
, testSaveAsDotX
)
24 loadAndReload("sample.dotx");
25 xmlDocUniquePtr pXmlDocCT
= parseExport("[Content_Types].xml");
27 // Ensure that document has correct content type
28 assertXPath(pXmlDocCT
,
29 "/ContentType:Types/ContentType:Override[@PartName='/word/document.xml']",
31 "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml");
34 CPPUNIT_PLUGIN_IMPLEMENT();
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */