add testcase for fc508908f5

Change-Id: I02ce120143f94fc477ccabaea8d8d2cbf33af42e
This commit is contained in:
Luboš Luňák
2012-07-13 16:06:56 +02:00
parent 4f5f7888c2
commit f7f4e9a823
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@@ -33,10 +33,12 @@ class Test : public SwModelTestBase
{
public:
void testHello();
void testEmptySvgFamilyName();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
CPPUNIT_TEST(testHello);
CPPUNIT_TEST(testEmptySvgFamilyName);
#endif
CPPUNIT_TEST_SUITE_END();
@@ -56,6 +58,12 @@ void Test::testHello()
CPPUNIT_ASSERT_EQUAL(12, getLength());
}
void Test::testEmptySvgFamilyName()
{
// .odt import did crash on the empty font list (which I think is valid according SVG spec)
load( "empty-svg-family-name.odt" );
}
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();