summaryrefslogtreecommitdiff
path: root/sd/qa
diff options
context:
space:
mode:
authorTibor Nagy <nagy.tibor2@nisz.hu>2022-10-16 09:32:33 +0200
committerLászló Németh <nemeth@numbertext.org>2022-10-27 18:17:26 +0200
commit097a2de6428f834d28fa78af203d3c0b6577656e (patch)
tree1083f612599c284d9758ede7fa498e8850fe20a5 /sd/qa
parent6eea95aac86c0e56043222af2b34c80f9aca8b3c (diff)
tdf#151492 PPTX export: fix connection points regression
caused by commit 4d153517183193f468dee9148c94fe9d874bacb3 (tdf#149697 PPTX export: fix changing place of connection points). Change-Id: I6134f18f3c32182a2f5d7295e2511da192dd20c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141427 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sd/qa')
-rw-r--r--sd/qa/unit/data/odp/tdf151492.odpbin0 -> 12618 bytes
-rw-r--r--sd/qa/unit/export-tests-ooxml2.cxx16
2 files changed, 16 insertions, 0 deletions
diff --git a/sd/qa/unit/data/odp/tdf151492.odp b/sd/qa/unit/data/odp/tdf151492.odp
new file mode 100644
index 000000000000..6928dac5982d
--- /dev/null
+++ b/sd/qa/unit/data/odp/tdf151492.odp
Binary files differ
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx
index 928ecab95997..6b7e934a176f 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -70,6 +70,7 @@ static void assertMotionPath(std::u16string_view rStr1, std::u16string_view rStr
class SdOOXMLExportTest2 : public SdModelTestBaseXML
{
public:
+ void testTdf151492();
void testTdf149697();
void testTdf149126();
void testTdf131905();
@@ -139,6 +140,7 @@ public:
CPPUNIT_TEST_SUITE(SdOOXMLExportTest2);
+ CPPUNIT_TEST(testTdf151492);
CPPUNIT_TEST(testTdf149697);
CPPUNIT_TEST(testTdf149126);
CPPUNIT_TEST(testTdf131905);
@@ -214,6 +216,20 @@ public:
}
};
+void SdOOXMLExportTest2::testTdf151492()
+{
+ ::sd::DrawDocShellRef xDocShRef
+ = loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/odp/tdf151492.odp"), ODP);
+ utl::TempFileNamed tempFile;
+ xDocShRef = saveAndReload(xDocShRef.get(), PPTX, &tempFile);
+
+ xmlDocUniquePtr pXmlDocContent = parseExport(tempFile, "ppt/slides/slide1.xml");
+ assertXPath(pXmlDocContent, "/p:sld/p:cSld/p:spTree/p:cxnSp/p:nvCxnSpPr/p:cNvCxnSpPr/a:stCxn",
+ "idx", "0");
+
+ xDocShRef->DoClose();
+}
+
void SdOOXMLExportTest2::testTdf149697()
{
::sd::DrawDocShellRef xDocShRef