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

n#693238 testcase

Change-Id: I7093d7d27d2448601bd29c2f3dd0c42077115b80
üst 704d7023
...@@ -75,6 +75,7 @@ public: ...@@ -75,6 +75,7 @@ public:
void testN758883(); void testN758883();
void testN766481(); void testN766481();
void testN766487(); void testN766487();
void testN693238();
CPPUNIT_TEST_SUITE(Test); CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT) #if !defined(MACOSX) && !defined(WNT)
...@@ -98,6 +99,7 @@ public: ...@@ -98,6 +99,7 @@ public:
CPPUNIT_TEST(testN758883); CPPUNIT_TEST(testN758883);
CPPUNIT_TEST(testN766481); CPPUNIT_TEST(testN766481);
CPPUNIT_TEST(testN766487); CPPUNIT_TEST(testN766487);
CPPUNIT_TEST(testN693238);
#endif #endif
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
...@@ -661,6 +663,21 @@ void Test::testN766487() ...@@ -661,6 +663,21 @@ void Test::testN766487()
CPPUNIT_ASSERT_EQUAL(sal_Int32(TWIP_TO_MM100(-360)), nValue); CPPUNIT_ASSERT_EQUAL(sal_Int32(TWIP_TO_MM100(-360)), nValue);
} }
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
*/
load("n693238.docx");
uno::Reference<beans::XPropertySet> xPropertySet(getStyles("PageStyles")->getByName("Default"), uno::UNO_QUERY);
sal_Int32 nValue = 0;
xPropertySet->getPropertyValue("LeftMargin") >>= nValue;
CPPUNIT_ASSERT_EQUAL(sal_Int32(635), nValue);
}
CPPUNIT_TEST_SUITE_REGISTRATION(Test); CPPUNIT_TEST_SUITE_REGISTRATION(Test);
CPPUNIT_PLUGIN_IMPLEMENT(); 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