From ba6046770f73402a65defd6c7b2cd40f5542fe5b Mon Sep 17 00:00:00 2001 From: Artur Dorda Date: Sat, 28 Jul 2012 13:49:12 +0200 Subject: [PATCH] Border test now available in ww8tok Change-Id: I5b1c3f6477583d71eece7c2b4c1b6a4ba7e6f4a2 --- sw/CppunitTest_sw_subsequent_ww8import.mk | 1 + sw/qa/extras/ww8import/ww8import.cxx | 11 +++++++++++ sw/qa/extras/ww8tok/data/all_gaps_word.doc | Bin 0 -> 32256 bytes 3 files changed, 12 insertions(+) create mode 100644 sw/qa/extras/ww8tok/data/all_gaps_word.doc 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 0000000000000000000000000000000000000000..d5c61a6c44d3c0bb11151924edaa870c7744d4fb GIT binary patch literal 32256 zcmeHQ2V4}#_n)gA9T5;IdIBmoiYQ<~K~VvvsA%kZz)_SY&92xLe=62k5Q#lTl-Ro< zioHh!O$2LDF~N$&a{u>sZ}INjQ=*Cg{C>IN^WB;ErtX`0Q{L_#7cbN*{q9GLTSUcm zAUyI;rcHzjd=7-$GPDsP?IDc3cQTm_*=+z2)VTj536!tTBV%&4`Giy$AHhx}1bP;n zh>)$?gcy*J;UU8h)jCv*;woLV`DUb*n2?fjG`8Yk_=uCq469?+g_#6H(|1akDY*IKY2bjUk~ELAU;?josJnHqv1~W%JY57-zcwC)t_xj2p7to13tQ% z_;!$PN*zMBL&jDXg!loy4f4y2z+$Q$BL}A5>Iiv&;j8npTt&x}$N0>BGii|i9f)I) z4@5*7$n&fESf35VtCpimqkI${Q;s69CSm6OK2_f5manc2OnHo)nDLg=Q9E!+zjM{P z!0=CjT>3#_Og^UEWRL?6q3hr~fsf-49g}V%jDwHSbnKU3nR=L#nEt|c1Otl^^&dmlek?I)3?f^!;fEdG7TU3j$537pC{j(*I6d4sOj*!IbJBtsAsmiIvkeoe_QdQBCga|21 z_L}96OHN9ZCVkk>8dU5X`?)#wlOhwOQtvJ?A#sU``syU3beHlRu@MQ96lu+}=>H94 z3HEu~fF^*Z0B1ljU?^ZQAQNyIPz=zA{a|fCH-HZy7|;hW7BCYq3y=-KedC)KPu{%1 zzsL7)-?)A4&HXDEPG0*Pn*YC6q@HQyE&V`Z7J1hG1|d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