Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 : */
9 :
10 : #include <swmodeltestbase.hxx>
11 : #include <com/sun/star/awt/Gradient.hpp>
12 : #include <com/sun/star/drawing/FillStyle.hpp>
13 :
14 3 : class Test : public SwModelTestBase
15 : {
16 : public:
17 : void testFdo62336();
18 :
19 2 : CPPUNIT_TEST_SUITE(Test);
20 : #if !defined(MACOSX) && !defined(WNT)
21 1 : CPPUNIT_TEST(run);
22 : #endif
23 2 : CPPUNIT_TEST_SUITE_END();
24 :
25 : private:
26 : void run();
27 : };
28 :
29 1 : void Test::run()
30 : {
31 : MethodEntry<Test> aMethods[] = {
32 : {"fdo62336.docx", &Test::testFdo62336},
33 1 : };
34 1 : header();
35 2 : for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i)
36 : {
37 1 : MethodEntry<Test>& rEntry = aMethods[i];
38 : load("/sw/qa/extras/htmlexport/data/", rEntry.pName,
39 1 : false /* not doing layout is required for this test */);
40 1 : utl::TempFile aFile;
41 1 : save("HTML", aFile);
42 1 : (this->*rEntry.pMethod)();
43 1 : finish();
44 1 : }
45 1 : }
46 :
47 1 : void Test::testFdo62336()
48 : {
49 : // The problem was essentially a crash during table export as docx/rtf/html
50 1 : }
51 :
52 1 : CPPUNIT_TEST_SUITE_REGISTRATION(Test);
53 :
54 4 : CPPUNIT_PLUGIN_IMPLEMENT();
55 :
56 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|