CppunitTest_sw_ooxmlexport: port testTextBoxGradientAngle to textboxes
Change-Id: Id17c7d4cf9c9bcb81d0da486c9bce44abb04b6cd
This commit is contained in:
parent
ab4279d7f2
commit
75ebb553bf
@ -1791,8 +1791,8 @@ DECLARE_OOXMLEXPORT_TEST(testHyperlineIsEnd, "hyperlink.docx")
|
|||||||
|
|
||||||
DECLARE_OOXMLEXPORT_TEST(testTextBoxGradientAngle, "fdo65295.docx")
|
DECLARE_OOXMLEXPORT_TEST(testTextBoxGradientAngle, "fdo65295.docx")
|
||||||
{
|
{
|
||||||
uno::Reference<text::XTextFramesSupplier> xTextFramesSupplier(mxComponent, uno::UNO_QUERY);
|
uno::Reference<drawing::XDrawPageSupplier> xDrawPageSupplier(mxComponent, uno::UNO_QUERY);
|
||||||
uno::Reference<container::XIndexAccess> xIndexAccess(xTextFramesSupplier->getTextFrames(), uno::UNO_QUERY);
|
uno::Reference<container::XIndexAccess> xIndexAccess(xDrawPageSupplier->getDrawPage(), uno::UNO_QUERY);
|
||||||
CPPUNIT_ASSERT_EQUAL(sal_Int32(8), xIndexAccess->getCount());
|
CPPUNIT_ASSERT_EQUAL(sal_Int32(8), xIndexAccess->getCount());
|
||||||
|
|
||||||
// Angle of frame#1 is 135 degrees, but 'aGradient.Angle' holds value in 1/10 of a degree
|
// Angle of frame#1 is 135 degrees, but 'aGradient.Angle' holds value in 1/10 of a degree
|
||||||
|
Loading…
x
Reference in New Issue
Block a user