diff options
author | Gülşah Köse <gulsah.kose@collabora.com> | 2021-01-20 00:52:56 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-02-03 11:23:42 +0100 |
commit | 28bdc7916e1875e6827cae3b70977ad6c8c42824 (patch) | |
tree | 9b2498dd02ad1d8754b7d957aebe4f5bd5517dea /sd | |
parent | f3244248e151c345fdbb07185e041142a044a017 (diff) |
tdf#134210 Import support for custom stretch values.
Change-Id: I33ced8d667e37b7fb79f4c87b689f45966ac0097
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109658
Tested-by: Jenkins
Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>
(cherry picked from commit 2c96bd26ec488d865370fe9d394e7c4e228e05ab)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109806
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/data/pptx/tdf134210.pptx | bin | 0 -> 125281 bytes | |||
-rw-r--r-- | sd/qa/unit/import-tests.cxx | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sd/qa/unit/data/pptx/tdf134210.pptx b/sd/qa/unit/data/pptx/tdf134210.pptx Binary files differnew file mode 100644 index 000000000000..6867ac4801ff --- /dev/null +++ b/sd/qa/unit/data/pptx/tdf134210.pptx diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx index 41402e006367..ee75e62a849b 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -204,6 +204,7 @@ public: void testTdf138148(); void testTdf114488(); void testTdf134174(); + void testTdf134210(); void testTdf114913(); void testTdf114821(); void testTdf115394(); @@ -318,6 +319,7 @@ public: CPPUNIT_TEST(testTdf138148); CPPUNIT_TEST(testTdf114488); CPPUNIT_TEST(testTdf134174); + CPPUNIT_TEST(testTdf134210); CPPUNIT_TEST(testTdf114913); CPPUNIT_TEST(testTdf114821); CPPUNIT_TEST(testTdf115394); @@ -2752,6 +2754,23 @@ void SdImportTest::testTdf134174() xDocShRef->DoClose(); } +void SdImportTest::testTdf134210() +{ + sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc(u"sd/qa/unit/data/pptx/tdf134210.pptx"), PPTX); + uno::Reference<beans::XPropertySet> xShape(getShapeFromPage(0, 0, xDocShRef), uno::UNO_SET_THROW); + CPPUNIT_ASSERT(xShape.is()); + + uno::Reference<graphic::XGraphic> xGraphic; + xShape->getPropertyValue("FillBitmap") >>= xGraphic; + CPPUNIT_ASSERT(xGraphic.is()); + + Graphic aGraphic(xGraphic); + BitmapEx aBitmap(aGraphic.GetBitmapEx()); + CPPUNIT_ASSERT_EQUAL( Color(6708292), aBitmap.GetPixelColor( 0, 0 )); + + xDocShRef->DoClose(); +} + void SdImportTest::testTdf114913() { sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc("sd/qa/unit/data/pptx/tdf114913.pptx"), PPTX); |