diff --git a/sw/CppunitTest_sw_subsequent_ww8import.mk b/sw/CppunitTest_sw_subsequent_ww8import.mk index 24d3e50057f3..6e70c9ddad60 100644 --- a/sw/CppunitTest_sw_subsequent_ww8import.mk +++ b/sw/CppunitTest_sw_subsequent_ww8import.mk @@ -51,6 +51,7 @@ $(eval $(call gb_CppunitTest_use_externals,sw_subsequent_ww8import,\ $(eval $(call gb_CppunitTest_set_include,sw_subsequent_ww8import,\ -I$(SRCDIR)/sw/inc \ -I$(SRCDIR)/sw/source/core/inc \ + -I$(SRCDIR)/sw/qa/extras/inc \ $$(INCLUDE) \ )) diff --git a/sw/qa/extras/ww8import/ww8import.cxx b/sw/qa/extras/ww8import/ww8import.cxx index a3bdb978dba6..e208a9b5ca29 100644 --- a/sw/qa/extras/ww8import/ww8import.cxx +++ b/sw/qa/extras/ww8import/ww8import.cxx @@ -26,6 +26,7 @@ */ #include "../swmodeltestbase.hxx" +#include "bordertest.hxx" #include #include @@ -49,6 +50,7 @@ public: void testN652364(); void testN757118(); void testN757905(); + void testAllGapsWord(); CPPUNIT_TEST_SUITE(Test); #if !defined(MACOSX) && !defined(WNT) @@ -58,6 +60,7 @@ public: CPPUNIT_TEST(testN652364); CPPUNIT_TEST(testN757118); CPPUNIT_TEST(testN757905); + CPPUNIT_TEST(testAllGapsWord); #endif CPPUNIT_TEST_SUITE_END(); @@ -223,6 +226,14 @@ void Test::testN757905() CPPUNIT_ASSERT(sal_Int32(31) < aHeight.toInt32()); } +void Test::testAllGapsWord() +{ + load("all_gaps_word.doc"); + BorderTest borderTest; + borderTest.testTheBorders(mxComponent); +} + + CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/sw/qa/extras/ww8tok/data/all_gaps_word.doc b/sw/qa/extras/ww8tok/data/all_gaps_word.doc new file mode 100644 index 000000000000..d5c61a6c44d3 Binary files /dev/null and b/sw/qa/extras/ww8tok/data/all_gaps_word.doc differ