From 0350c84a5e6bf7c48cd77c7fcb29a3bbdc1d8c8d Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 20 Apr 2022 10:10:54 +0200 Subject: [PATCH] tdf#119649: sd_import_tests2: Add unittest Change-Id: Ib09e740a4b0e6b5c6e2769c0310aaf44e3392328 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133199 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- sd/qa/unit/data/pptx/tdf119649.pptx | Bin 0 -> 21228 bytes sd/qa/unit/import-tests2.cxx | 43 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 sd/qa/unit/data/pptx/tdf119649.pptx diff --git a/sd/qa/unit/data/pptx/tdf119649.pptx b/sd/qa/unit/data/pptx/tdf119649.pptx new file mode 100644 index 0000000000000000000000000000000000000000..303d4c0ad877317d0a9aab16187274143b77687d GIT binary patch literal 21228 zcmeHvbySsY_BP#J(hbs`5)#rW3P^)=cXxM#G)RMVH`3i5(%qpn!gt`E8PVU2wT6|hi8Vdl!{4GPDG5-1 zIKQLs=zI;bL=Y6%qW<<~v1mrficVw?aXZUqN(} ziydd3nXdyI=Ue^xSzkMYvs2Fz>rJT5ObrXR=T&aKrC)LH$7@8<6Ohsm zyNXB~q)Y_yV?XDUg;o=rWSBWph~|tDiZL%+;|-}*z!qr>vw~AT8uXHTuDo9tT*Z(6 zqNdUk#4W z4Cfo1*#?i~8W8C90uj!5t8IB3ygmLw|2i$M1s!Uy_zh)R>3C@OsNO?uA&`b=Ax-B3OG<*Jr?(L{5FwL-TL(|~1hbRC1ZHK=Q z@Lc4;ztaZvpP&54GcPE-ww|Xza{H{&dOX2PDjKwB%~Qr@nrLH|Gv42EXbnkX!pP4D z#AWC1`YfW5!cuOj>cYw`;@P|A?{>4kJnl6`WOEjKJ_@MGX?mEJoi>ycMqZzXN~DD` zIc4O_NMC83LBw6LH- z9jv>Q1eGE0EVi`5gal(Qp+WjQ*I88+Qt=+p5VWF|T1LmL5tBWs0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Q`vk49h#pTH7Cd1b*8cEJ*`!4eX|5|qIb z=%AT4cn;xYDcsq_Rs8fIN%*eWDZKLX7)ddoFVEZE?BG#>-Xzh_Ie%KTp{Z0l|5|+W zm|Q8|uB#je=)@ji*<~ewLC}DHobmJYq#MAl;Fs&ki9f%7@#%3e4+r7=xX=Lq)xS9w z=U1?&C#(?uKmxp?0O;`p*kgyrPXk3ix}<+adwRaZ!>KGkE@D8+{t4P6=p)Xr5KoUN zco?btah*c^1@Y^#5WgZk9l(F+bNz8y0Y>uwaT9-Vu)(j$PX|GXe!v1=O#z(R|3Q9y z$S33czrsBo@A~;s^AP`n`*oJ|SA?gdQ4ig$KQ1Bw;6HBY@69%UDb0ST4K(rWt0{vrr>328%Gcwb&KSBO66ZGfE?3jOo{A1AO&yl$SV}Ji% z&_AYE{v4Sf`%jR6jD-9-vM|n{Apig9h6L`PApaO%`15;~#rqTF9}@w8jx3M=C&)kA z?0<*+GryGqmjB=D2IG(3^h3%i= z9O-`#_fKW_vU@{j9K z;7REBx5)X|Z$FJu9zw+*7wxMj-~M~x`0Ll7Zf73?nIG4X&_4}pWF^1>n>HXI62Q+l M7$Bfkk%xEx4`4|-$N&HU literal 0 HcmV?d00001 diff --git a/sd/qa/unit/import-tests2.cxx b/sd/qa/unit/import-tests2.cxx index 7a67debd38d9..0bb99100b9dd 100644 --- a/sd/qa/unit/import-tests2.cxx +++ b/sd/qa/unit/import-tests2.cxx @@ -74,6 +74,7 @@ public: void testTdf103792(); void testTdf103876(); void testTdf79007(); + void testTdf119649(); void testTdf118776(); void testTdf129686(); void testTdf104015(); @@ -143,6 +144,7 @@ public: CPPUNIT_TEST(testTdf103792); CPPUNIT_TEST(testTdf103876); CPPUNIT_TEST(testTdf79007); + CPPUNIT_TEST(testTdf119649); CPPUNIT_TEST(testTdf118776); CPPUNIT_TEST(testTdf129686); CPPUNIT_TEST(testTdf104015); @@ -511,6 +513,47 @@ void SdImportTest2::testTdf79007() xDocShRef->DoClose(); } +void SdImportTest2::testTdf119649() +{ + sd::DrawDocShellRef xDocShRef + = loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf119649.pptx"), PPTX); + uno::Reference xShape(getShapeFromPage(1, 0, xDocShRef)); + + // Get first paragraph of the text + uno::Reference const xParagraph(getParagraphFromShape(0, xShape)); + + uno::Reference xRun(getRunFromParagraph(0, xParagraph)); + CPPUNIT_ASSERT_EQUAL(OUString("default_color("), xRun->getString()); + + uno::Reference xPropSet(xRun, uno::UNO_QUERY_THROW); + + Color nCharColor; + xPropSet->getPropertyValue("CharColor") >>= nCharColor; + CPPUNIT_ASSERT_EQUAL(COL_AUTO, nCharColor); + + xRun.set(getRunFromParagraph(1, xParagraph)); + + // Without the fix in place, this test would have failed with + // - Expected: colored_text + // - Actual : colored_text) + CPPUNIT_ASSERT_EQUAL(OUString("colored_text"), xRun->getString()); + + xPropSet.set(xRun, uno::UNO_QUERY_THROW); + + xPropSet->getPropertyValue("CharColor") >>= nCharColor; + CPPUNIT_ASSERT_EQUAL(Color(0xCE181E), nCharColor); + + xRun.set(getRunFromParagraph(2, xParagraph)); + CPPUNIT_ASSERT_EQUAL(OUString(")"), xRun->getString()); + + xPropSet.set(xRun, uno::UNO_QUERY_THROW); + + xPropSet->getPropertyValue("CharColor") >>= nCharColor; + CPPUNIT_ASSERT_EQUAL(COL_AUTO, nCharColor); + + xDocShRef->DoClose(); +} + void SdImportTest2::testTdf118776() { sd::DrawDocShellRef xDocShRef