summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-09-28 09:52:29 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-09-28 10:52:51 +0200
commit7a3a8a254363801bf6893b23d67f86a7461f8f3b (patch)
treed359d8b9e425b301c51af733ff352f20457ad969 /sw/qa/extras/ooxmlimport/ooxmlimport.cxx
parent0c8017a364efb0e8a1cab57b22257e9b319fa0a1 (diff)
n#782061 testcase
Change-Id: I6aa95063ac8fe825b47decc68b08a35d81e4d59d
Diffstat (limited to 'sw/qa/extras/ooxmlimport/ooxmlimport.cxx')
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index 1cefa3937875..a83a398ff593 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -96,6 +96,7 @@ public:
void testN780853();
void testN780843();
void testShadow();
+ void testN782061();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
@@ -138,6 +139,7 @@ public:
CPPUNIT_TEST(testN780853);
CPPUNIT_TEST(testN780843);
CPPUNIT_TEST(testShadow);
+ CPPUNIT_TEST(testN782061);
#endif
CPPUNIT_TEST_SUITE_END();
@@ -981,6 +983,16 @@ void Test::testShadow()
CPPUNIT_ASSERT_EQUAL(sal_Int32(273), sal_Int32(aShadow.ShadowWidth));
}
+void Test::testN782061()
+{
+ /*
+ * The problem was that the character escapement in the second run was -58.
+ */
+ load("n782061.docx");
+
+ CPPUNIT_ASSERT_EQUAL(sal_Int32(-9), getProperty<sal_Int32>(getRun(getParagraph(1), 2), "CharEscapement"));
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT();