Kaydet (Commit) 93d22852 authored tarafından Miklos Vajna's avatar Miklos Vajna

n#775906 testcase

Change-Id: Idafd1b7506dac77307190df275fb8ed35d40e5e5
üst 1a3f44e5
......@@ -83,6 +83,7 @@ public:
void testNumbering1();
void testBnc773061();
void testAllGapsWord();
void testN775906();
CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT)
......@@ -110,6 +111,7 @@ public:
CPPUNIT_TEST(testNumbering1);
CPPUNIT_TEST(testBnc773061);
CPPUNIT_TEST(testAllGapsWord);
CPPUNIT_TEST(testN775906);
#endif
CPPUNIT_TEST_SUITE_END();
......@@ -638,7 +640,6 @@ void Test::testN766487()
void Test::testN693238()
{
/*
*
* The problem was that a continous section break at the end of the doc caused the margins to be ignored.
*
* xray ThisComponent.StyleFamilies.PageStyles.Default.LeftMargin ' was 2000, should be 635
......@@ -719,6 +720,22 @@ void Test::testAllGapsWord()
borderTest.testTheBorders(mxComponent);
}
void Test::testN775906()
{
/*
* The problem was that right margin (via direct formatting) erased the left/first margin (inherited from numbering style).
*
* oParas = ThisComponent.Text.createEnumeration
* oPara = oParas.nextElement
* xray oPara.ParaFirstLineIndent ' was 0
* xray oPara.ParaLeftMargin ' was 0
*/
load("n775906.docx");
CPPUNIT_ASSERT_EQUAL(sal_Int32(-635), getProperty<sal_Int32>(getParagraph(1), "ParaFirstLineIndent"));
CPPUNIT_ASSERT_EQUAL(sal_Int32(1905), getProperty<sal_Int32>(getParagraph(1), "ParaLeftMargin"));
}
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