summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-12-07 14:41:18 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-12-08 09:06:19 +0000
commit2b8d5e8affe256b80a28cba67db56d2666ec31cc (patch)
treebb1d1b16316f6d8987bd9ceac2adf28e2780a0d5 /chart2
parente8ff90d35ef69af5f80f4d05c1fe8e79447057a0 (diff)
tdf#62057: move UItest to CppUnittest
Change-Id: I5be16135c563ed15acf45b93c59189531b832b37 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143782 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/data/ods/tdf62057.odsbin0 -> 16852 bytes
-rw-r--r--chart2/qa/extras/uichart.cxx13
2 files changed, 13 insertions, 0 deletions
diff --git a/chart2/qa/extras/data/ods/tdf62057.ods b/chart2/qa/extras/data/ods/tdf62057.ods
new file mode 100644
index 000000000000..3945c41d0318
--- /dev/null
+++ b/chart2/qa/extras/data/ods/tdf62057.ods
Binary files differ
diff --git a/chart2/qa/extras/uichart.cxx b/chart2/qa/extras/uichart.cxx
index 391d5012a1b7..ec250f80bb27 100644
--- a/chart2/qa/extras/uichart.cxx
+++ b/chart2/qa/extras/uichart.cxx
@@ -188,6 +188,19 @@ CPPUNIT_TEST_FIXTURE(Chart2UiChartTest, testTdf136011)
testCopyPasteToNewSheet(xChartDoc2, "Object 2", 3, 9);
}
+CPPUNIT_TEST_FIXTURE(Chart2UiChartTest, testTdf62057)
+{
+ loadFromURL(u"ods/tdf62057.ods");
+ uno::Reference<chart::XChartDocument> xChartDoc(getChartCompFromSheet(0, 0, mxComponent),
+ uno::UNO_QUERY_THROW);
+
+ // Without the fix in place, this test would have failed with
+ // - Expected: 2
+ // - Actual : 7
+ // - Incorrect number of columns in destination file
+ testCopyPasteToNewSheet(xChartDoc, "Object 1", 2, 6);
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */