diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-09-17 15:47:38 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-09-17 15:50:00 +0200 |
commit | c6f6faeda1324d220e4018194f1a697a691d916b (patch) | |
tree | 13833376ac970466631b250f1945c9398d85bb27 /sw/qa | |
parent | 895edc12a48e59b67f7eaeb0245b9d051eee28d8 (diff) |
n#778140 testcase
Change-Id: I50ba7e12eec41c90dff1a378113f46bff36552a4
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ooxmlimport/data/n778140.docx | bin | 0 -> 9564 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/n778140.docx b/sw/qa/extras/ooxmlimport/data/n778140.docx Binary files differnew file mode 100644 index 000000000000..5029ffe37cfa --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/n778140.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index b66b5b8cdada..4d25c9bcb6e6 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -90,6 +90,7 @@ public: void testN777345(); void testN777337(); void testN778836(); + void testN778140(); CPPUNIT_TEST_SUITE(Test); #if !defined(MACOSX) && !defined(WNT) @@ -122,6 +123,7 @@ public: CPPUNIT_TEST(testN777345); CPPUNIT_TEST(testN777337); CPPUNIT_TEST(testN778836); + CPPUNIT_TEST(testN778140); #endif CPPUNIT_TEST_SUITE_END(); @@ -816,6 +818,18 @@ void Test::testN778836() CPPUNIT_ASSERT_EQUAL(sal_Int32(-635), getProperty<sal_Int32>(getParagraph(0), "ParaFirstLineIndent")); } +void Test::testN778140() +{ + /* + * The problem was that the paragraph top/bottom margins were incorrect due + * to unhandled w:doNotUseHTMLParagraphAutoSpacing. + */ + load("n778140.docx"); + + CPPUNIT_ASSERT_EQUAL(sal_Int32(176), getProperty<sal_Int32>(getParagraph(0), "ParaTopMargin")); + CPPUNIT_ASSERT_EQUAL(sal_Int32(353), getProperty<sal_Int32>(getParagraph(0), "ParaBottomMargin")); +} + CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_PLUGIN_IMPLEMENT(); |