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

testcase for becb244b

Change-Id: I37df8d6d5cbc9b37fa03681e8dc32a4926cd42a9
üst 604bdac5
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <com/sun/star/text/TextContentAnchorType.hpp> #include <com/sun/star/text/TextContentAnchorType.hpp>
#include <com/sun/star/text/VertOrientation.hpp> #include <com/sun/star/text/VertOrientation.hpp>
#include <com/sun/star/text/WrapTextMode.hpp> #include <com/sun/star/text/WrapTextMode.hpp>
#include <com/sun/star/text/WritingMode2.hpp>
#include <com/sun/star/text/XDependentTextField.hpp> #include <com/sun/star/text/XDependentTextField.hpp>
#include <com/sun/star/text/XFormField.hpp> #include <com/sun/star/text/XFormField.hpp>
#include <com/sun/star/text/XPageCursor.hpp> #include <com/sun/star/text/XPageCursor.hpp>
...@@ -111,6 +112,7 @@ public: ...@@ -111,6 +112,7 @@ public:
void testN592908_Frame(); void testN592908_Frame();
void testN592908_Picture(); void testN592908_Picture();
void testN779630(); void testN779630();
void testIndentation();
CPPUNIT_TEST_SUITE(Test); CPPUNIT_TEST_SUITE(Test);
#if !defined(MACOSX) && !defined(WNT) #if !defined(MACOSX) && !defined(WNT)
...@@ -191,6 +193,7 @@ void Test::run() ...@@ -191,6 +193,7 @@ void Test::run()
{"n592908-frame.docx", &Test::testN592908_Frame}, {"n592908-frame.docx", &Test::testN592908_Frame},
{"n592908-picture.docx", &Test::testN592908_Picture}, {"n592908-picture.docx", &Test::testN592908_Picture},
{"n779630.docx", &Test::testN779630}, {"n779630.docx", &Test::testN779630},
{"indentation.docx", &Test::testIndentation},
}; };
header(); header();
for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i) for (unsigned int i = 0; i < SAL_N_ELEMENTS(aMethods); ++i)
...@@ -1369,6 +1372,13 @@ void Test::testN779630() ...@@ -1369,6 +1372,13 @@ void Test::testN779630()
CPPUNIT_ASSERT_EQUAL(true, bool(getProperty<sal_Bool>(xPropertySet, "Dropdown"))); CPPUNIT_ASSERT_EQUAL(true, bool(getProperty<sal_Bool>(xPropertySet, "Dropdown")));
} }
void Test::testIndentation()
{
uno::Reference<beans::XPropertySet> xPropertySet(getStyles("ParagraphStyles")->getByName("Standard"), uno::UNO_QUERY);
// This was RL_TB (e.g. right-to-left).
CPPUNIT_ASSERT_EQUAL(text::WritingMode2::LR_TB, getProperty<sal_Int16>(xPropertySet, "WritingMode"));
}
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