/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
void Chart2XShapeTest::testTdf150832()
{ // FIXME: the DPI check should be removed when either (1) the test is fixed to work with // non-default DPI; or (2) unit tests on Windows are made to use svp VCL plugin. if (!IsDefaultDPI()) return;
// Without the fix in place, this test would have failed with // - Expected: 319 // - Actual : 0
loadFromFile(u"xls/tdf150832.xls");
compareAgainstReference(getXShapeDumpString(), u"tdf150832.xml");
}
void Chart2XShapeTest::testTdf149204()
{ // FIXME: the DPI check should be removed when either (1) the test is fixed to work with // non-default DPI; or (2) unit tests on Windows are made to use svp VCL plugin. if (!IsDefaultDPI()) return;
// Without the fix in place, this test would have failed with // - Expected: 12230 // - Actual : 12940 // - Node: /XShapes/XShape[2] // - Attr: sizeX
loadFromFile(u"pptx/tdf149204.pptx");
uno::Reference<chart::XChartDocument> xChartDoc = getChartDocFromDrawImpress(0, 0);
compareAgainstReference(getShapeDump(xChartDoc), u"tdf149204.xml");
}
void Chart2XShapeTest::testTdf151424()
{ // FIXME: the DPI check should be removed when either (1) the test is fixed to work with // non-default DPI; or (2) unit tests on Windows are made to use svp VCL plugin. if (!IsDefaultDPI()) return;
// Without the fix in place, this test would have failed with // - Expected: 3717 // - Actual : 3530 // - Node: /XShapes/XShape[2]/XShapes/XShape[1] // - Attr: positionX
loadFromFile(u"ods/tdf151424.ods");
compareAgainstReference(getXShapeDumpString(), u"tdf151424.xml");
}
void Chart2XShapeTest::testFdo75075()
{ // FIXME: the DPI check should be removed when either (1) the test is fixed to work with // non-default DPI; or (2) unit tests on Windows are made to use svp VCL plugin. if (!IsDefaultDPI()) return;
void Chart2XShapeTest::testPropertyMappingBarChart()
{ // FIXME: the DPI check should be removed when either (1) the test is fixed to work with // non-default DPI; or (2) unit tests on Windows are made to use svp VCL plugin. if (!IsDefaultDPI()) return;
void Chart2XShapeTest::testPieChartLabels1()
{ // FIXME: the DPI check should be removed when either (1) the test is fixed to work with // non-default DPI; or (2) unit tests on Windows are made to use svp VCL plugin. if (!IsDefaultDPI()) return;
// inside placement for the best fit case
loadFromFile(u"xlsx/tdf90839-1.xlsx");
compareAgainstReference(getXShapeDumpString(), u"tdf90839-1.xml");
}
void Chart2XShapeTest::testPieChartLabels2()
{ // FIXME: the DPI check should be removed when either (1) the test is fixed to work with // non-default DPI; or (2) unit tests on Windows are made to use svp VCL plugin. if (!IsDefaultDPI()) return;
// text wrap: wrap all text labels except Yellow one
loadFromFile(u"xlsx/tdf90839-2.xlsx");
compareAgainstReference(getXShapeDumpString(), u"tdf90839-2.xml");
}
void Chart2XShapeTest::testPieChartLabels3()
{ // FIXME: the DPI check should be removed when either (1) the test is fixed to work with // non-default DPI; or (2) unit tests on Windows are made to use svp VCL plugin. if (!IsDefaultDPI()) return;
// text wrap: wrap no text label except Yellow one
loadFromFile(u"xlsx/tdf90839-3.xlsx");
compareAgainstReference(getXShapeDumpString(), u"tdf90839-3.xml");
}
void Chart2XShapeTest::testPieChartLabels4()
{ // FIXME: the DPI check should be removed when either (1) the test is fixed to work with // non-default DPI; or (2) unit tests on Windows are made to use svp VCL plugin. if (!IsDefaultDPI()) return;
// data value and percent value are centered horizontally
loadFromFile(u"ods/tdf90839-4.ods");
compareAgainstReference(getXShapeDumpString(), u"tdf90839-4.xml");
}
void Chart2XShapeTest::testChart()
{ // FIXME: the DPI check should be removed when either (1) the test is fixed to work with // non-default DPI; or (2) unit tests on Windows are made to use svp VCL plugin. if (!IsDefaultDPI()) return;
void Chart2XShapeTest::testTdf76649TrendLineBug()
{ // This bug prevents that the trendline (regression curve) is drawn // if the first cell is empty. See tdf#76649 for details.
loadFromFile(u"ods/tdf76649_TrendLineBug.ods");
xmlDocUniquePtr pXmlDoc = getXShapeDumpXmlDoc();
// Check if the regression curve exists (which means a XShape with a certain // name should exist in the dump)
assertXPath(pXmlDoc, "//XShape[@name='CID/D=0:CS=0:CT=0:Series=0:Curve=0']", 1);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.