summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/CppunitTest_sw_filters_test.mk7
-rw-r--r--sw/qa/core/data/ooxml/fail/.gitignore0
-rw-r--r--sw/qa/core/data/ooxml/indeterminate/.gitignore0
-rw-r--r--sw/qa/core/data/ooxml/pass/fdo64256.docx (renamed from sw/qa/extras/ooxmlimport/data/fdo64256.docx)bin5602 -> 5602 bytes
-rw-r--r--sw/qa/core/filters-test.cxx5
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx9
6 files changed, 16 insertions, 5 deletions
diff --git a/sw/CppunitTest_sw_filters_test.mk b/sw/CppunitTest_sw_filters_test.mk
index 641b381065e8..df134023442a 100644
--- a/sw/CppunitTest_sw_filters_test.mk
+++ b/sw/CppunitTest_sw_filters_test.mk
@@ -58,12 +58,15 @@ $(eval $(call gb_CppunitTest_use_components,sw_filters_test,\
configmgr/source/configmgr \
dbaccess/util/dba \
fileaccess/source/fileacc \
+ filter/source/config/cache/filterconfig1 \
forms/util/frm \
framework/util/fwk \
i18npool/util/i18npool \
+ oox/util/oox \
package/source/xstor/xstor \
package/util/package2 \
sax/source/expatwrap/expwrap \
+ sax/source/fastparser/fastsax \
sfx2/util/sfx \
svtools/util/svt \
sw/util/msword \
@@ -71,7 +74,9 @@ $(eval $(call gb_CppunitTest_use_components,sw_filters_test,\
toolkit/util/tk \
ucb/source/core/ucb1 \
ucb/source/ucp/file/ucpfile1 \
+ unotools/util/utl \
unoxml/source/service/unoxml \
+ writerfilter/util/writerfilter \
$(if $(filter DESKTOP,$(BUILD_TYPE)),xmlhelp/util/ucpchelp1) \
xmloff/source/transform/xof \
xmloff/util/xo \
@@ -79,4 +84,6 @@ $(eval $(call gb_CppunitTest_use_components,sw_filters_test,\
$(eval $(call gb_CppunitTest_use_configuration,sw_filters_test))
+$(eval $(call gb_CppunitTest_use_filter_configuration,sw_filters_test))
+
# vim: set noet sw=4 ts=4:
diff --git a/sw/qa/core/data/ooxml/fail/.gitignore b/sw/qa/core/data/ooxml/fail/.gitignore
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sw/qa/core/data/ooxml/fail/.gitignore
diff --git a/sw/qa/core/data/ooxml/indeterminate/.gitignore b/sw/qa/core/data/ooxml/indeterminate/.gitignore
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sw/qa/core/data/ooxml/indeterminate/.gitignore
diff --git a/sw/qa/extras/ooxmlimport/data/fdo64256.docx b/sw/qa/core/data/ooxml/pass/fdo64256.docx
index e8e901dd10e2..e8e901dd10e2 100644
--- a/sw/qa/extras/ooxmlimport/data/fdo64256.docx
+++ b/sw/qa/core/data/ooxml/pass/fdo64256.docx
Binary files differ
diff --git a/sw/qa/core/filters-test.cxx b/sw/qa/core/filters-test.cxx
index d90627e13bee..26fcd58049af 100644
--- a/sw/qa/core/filters-test.cxx
+++ b/sw/qa/core/filters-test.cxx
@@ -107,6 +107,11 @@ void SwFiltersTest::testCVEs()
testDir(OUString("Text (encoded)"),
getURLFromSrc("/sw/qa/core/data/txt/"),
OUString(FILTER_TEXT_DLG));
+
+ testDir(OUString("MS Word 2007 XML"),
+ getURLFromSrc("/sw/qa/core/data/ooxml/"),
+ OUString(),
+ SFX_FILTER_STARONEFILTER);
}
void SwFiltersTest::setUp()
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index cadc68b7fbdd..8c6406304c5a 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -77,7 +77,7 @@ public:
void testN778140();
void testN778828();
void testInk();
- void testNoCrash();
+ void testN779834();
void testN779627();
void testN779941();
void testFdo55187();
@@ -157,7 +157,7 @@ void Test::run()
{"n778140.docx", &Test::testN778140},
{"n778828.docx", &Test::testN778828},
{"ink.docx", &Test::testInk},
- {"n779834.docx", &Test::testNoCrash},
+ {"n779834.docx", &Test::testN779834},
{"n779627.docx", &Test::testN779627},
{"n779941.docx", &Test::testN779941},
{"fdo55187.docx", &Test::testFdo55187},
@@ -191,7 +191,6 @@ void Test::run()
{"n592908-frame.docx", &Test::testN592908_Frame},
{"n592908-picture.docx", &Test::testN592908_Picture},
{"n779630.docx", &Test::testN779630},
- {"fdo64256.docx", &Test::testNoCrash},
};
header();
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i)
@@ -879,9 +878,9 @@ void Test::testInk()
CPPUNIT_ASSERT(xServiceInfo->supportsService("com.sun.star.drawing.OpenBezierShape"));
}
-void Test::testNoCrash()
+void Test::testN779834()
{
- // These documents simply crashed the importer.
+ // This document simply crashed the importer.
}
void Test::testN779627()