Kaydet (Commit) 7a3a8a25 authored tarafından Miklos Vajna's avatar Miklos Vajna

n#782061 testcase

Change-Id: I6aa95063ac8fe825b47decc68b08a35d81e4d59d
üst 0c8017a3
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment