[Libreoffice-commits] .: sw/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 21 01:30:30 PDT 2012


 sw/qa/extras/ooxmlimport/data/n779834.docx |binary
 sw/qa/extras/ooxmlimport/ooxmlimport.cxx   |    8 ++++++++
 2 files changed, 8 insertions(+)

New commits:
commit 49eaecd04bab1239b93cb576bf1c6bdb3620f52e
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Fri Sep 21 10:29:39 2012 +0200

    n#779834 testcase
    
    Change-Id: I13bc9452385fff1bdc2577ea000ba208206a2c32

diff --git a/sw/qa/extras/ooxmlimport/data/n779834.docx b/sw/qa/extras/ooxmlimport/data/n779834.docx
new file mode 100644
index 0000000..24b6db1
Binary files /dev/null and b/sw/qa/extras/ooxmlimport/data/n779834.docx differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index ab39e8f..05d7102 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -89,6 +89,7 @@ public:
     void testN778140();
     void testN778828();
     void testInk();
+    void testN779834();
 
     CPPUNIT_TEST_SUITE(Test);
 #if !defined(MACOSX) && !defined(WNT)
@@ -124,6 +125,7 @@ public:
     CPPUNIT_TEST(testN778140);
     CPPUNIT_TEST(testN778828);
     CPPUNIT_TEST(testInk);
+    CPPUNIT_TEST(testN779834);
 #endif
     CPPUNIT_TEST_SUITE_END();
 
@@ -859,6 +861,12 @@ void Test::testInk()
     CPPUNIT_ASSERT(xServiceInfo->supportsService("com.sun.star.drawing.OpenBezierShape"));
 }
 
+void Test::testN779834()
+{
+    // This document simply crashed the importer.
+    load("n779834.docx");
+}
+
 CPPUNIT_TEST_SUITE_REGISTRATION(Test);
 
 CPPUNIT_PLUGIN_IMPLEMENT();


More information about the Libreoffice-commits mailing list