diff options
Diffstat (limited to 'sd/qa/unit/import-tests.cxx')
-rw-r--r-- | sd/qa/unit/import-tests.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx index 6b52466c2513..32779db85579 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -209,8 +209,8 @@ public: void testTdf128684(); void testTdf119187(); void testMirroredGraphic(); - void testCropPositionGraphic(); void testGreysScaleGraphic(); + void testTdf134210CropPosition(); bool checkPattern(sd::DrawDocShellRef const & rDocRef, int nShapeNumber, std::vector<sal_uInt8>& rExpected); void testPatternImport(); @@ -338,8 +338,8 @@ public: CPPUNIT_TEST(testTdf113198); CPPUNIT_TEST(testTdf119187); CPPUNIT_TEST(testMirroredGraphic); - CPPUNIT_TEST(testCropPositionGraphic); CPPUNIT_TEST(testGreysScaleGraphic); + CPPUNIT_TEST(testTdf134210CropPosition); CPPUNIT_TEST_SUITE_END(); }; @@ -3242,8 +3242,9 @@ void SdImportTest::testMirroredGraphic() xDocShRef->DoClose(); } -void SdImportTest::testCropPositionGraphic() +void SdImportTest::testTdf134210CropPosition() { + // We are testing crop position of bitmap in custom shapes. We should see only green with proper fix. sd::DrawDocShellRef xDocShRef = loadURL(m_directories.getURLFromSrc(u"sd/qa/unit/data/pptx/crop-position.pptx"), PPTX); uno::Reference<beans::XPropertySet> xShape(getShapeFromPage(0, 0, xDocShRef), uno::UNO_SET_THROW); CPPUNIT_ASSERT(xShape.is()); @@ -3252,7 +3253,7 @@ void SdImportTest::testCropPositionGraphic() CPPUNIT_ASSERT(xGraphic.is()); Graphic aGraphic(xGraphic); BitmapEx aBitmap(aGraphic.GetBitmapEx()); - CPPUNIT_ASSERT_EQUAL( Color(8682893), aBitmap.GetPixelColor( 0, 0 )); + CPPUNIT_ASSERT_EQUAL( Color(8508442), aBitmap.GetPixelColor( 0, 0 )); xDocShRef->DoClose(); } |