[Libreoffice-commits] .: sw/qa
Lubos Lunak
llunak at kemper.freedesktop.org
Fri Jul 13 07:09:18 PDT 2012
sw/qa/extras/odftok/data/empty-svg-family-name.odt |binary
sw/qa/extras/odftok/odftok.cxx | 8 ++++++++
2 files changed, 8 insertions(+)
New commits:
commit f7f4e9a823adc20cb4136d7ff6f83b943f23b3b6
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Fri Jul 13 16:06:56 2012 +0200
add testcase for fc508908f55cc1fe5a22adcba710cebb75fc979c
Change-Id: I02ce120143f94fc477ccabaea8d8d2cbf33af42e
diff --git a/sw/qa/extras/odftok/data/empty-svg-family-name.odt b/sw/qa/extras/odftok/data/empty-svg-family-name.odt
new file mode 100644
index 0000000..b4b5516
Binary files /dev/null and b/sw/qa/extras/odftok/data/empty-svg-family-name.odt differ
diff --git a/sw/qa/extras/odftok/odftok.cxx b/sw/qa/extras/odftok/odftok.cxx
index efbadb3..bb62a18 100644
--- a/sw/qa/extras/odftok/odftok.cxx
+++ b/sw/qa/extras/odftok/odftok.cxx
@@ -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();
More information about the Libreoffice-commits
mailing list