Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
967b8c33
Kaydet (Commit)
967b8c33
authored
Nis 25, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add test for plotArea manualLayout, tdf#90851
Change-Id: I18ac4e702a7ef4a2d9dbb4ba7d0ece1e69c7e379
üst
8ccb2c0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
chart2export.cxx
chart2/qa/extras/chart2export.cxx
+30
-0
plot_area_manual_layout.xlsx
chart2/qa/extras/data/xlsx/plot_area_manual_layout.xlsx
+0
-0
No files found.
chart2/qa/extras/chart2export.cxx
Dosyayı görüntüle @
967b8c33
...
...
@@ -91,6 +91,7 @@ public:
void
testBubble3DXLSX
();
void
testNoMarkerXLSX
();
void
testTitleManualLayoutXLSX
();
void
testPlotAreaManualLayoutXLSX
();
CPPUNIT_TEST_SUITE
(
Chart2ExportTest
);
CPPUNIT_TEST
(
testErrorBarXLSX
);
...
...
@@ -146,6 +147,7 @@ public:
CPPUNIT_TEST
(
testBubble3DXLSX
);
CPPUNIT_TEST
(
testNoMarkerXLSX
);
CPPUNIT_TEST
(
testTitleManualLayoutXLSX
);
CPPUNIT_TEST
(
testPlotAreaManualLayoutXLSX
);
CPPUNIT_TEST_SUITE_END
();
protected
:
...
...
@@ -1338,6 +1340,34 @@ void Chart2ExportTest::testTitleManualLayoutXLSX()
assertXPath
(
pXmlDoc
,
"/c:chartSpace/c:chart/c:title/c:tx/c:rich/a:bodyPr"
,
"rot"
,
"1200000"
);
}
void
Chart2ExportTest
::
testPlotAreaManualLayoutXLSX
()
{
load
(
"/chart2/qa/extras/data/xlsx/"
,
"plot_area_manual_layout.xlsx"
);
xmlDocPtr
pXmlDoc
=
parseExport
(
"xl/charts/chart"
,
"Calc Office Open XML"
);
CPPUNIT_ASSERT
(
pXmlDoc
);
assertXPath
(
pXmlDoc
,
"/c:chartSpace/c:chart/c:plotArea/c:layout/c:manualLayout/c:xMode"
,
"val"
,
"edge"
);
assertXPath
(
pXmlDoc
,
"/c:chartSpace/c:chart/c:plotArea/c:layout/c:manualLayout/c:yMode"
,
"val"
,
"edge"
);
OUString
aXVal
=
getXPath
(
pXmlDoc
,
"/c:chartSpace/c:chart/c:plotArea/c:layout/c:manualLayout/c:x"
,
"val"
);
double
nX
=
aXVal
.
toDouble
();
CPPUNIT_ASSERT
(
nX
>
0
&&
nX
<
1
);
OUString
aYVal
=
getXPath
(
pXmlDoc
,
"/c:chartSpace/c:chart/c:plotArea/c:layout/c:manualLayout/c:y"
,
"val"
);
double
nY
=
aYVal
.
toDouble
();
CPPUNIT_ASSERT
(
nY
>
0
&&
nY
<
1
);
CPPUNIT_ASSERT
(
nX
!=
nY
);
OUString
aWVal
=
getXPath
(
pXmlDoc
,
"/c:chartSpace/c:chart/c:plotArea/c:layout/c:manualLayout/c:w"
,
"val"
);
double
nW
=
aWVal
.
toDouble
();
CPPUNIT_ASSERT
(
nW
>
0
&&
nW
<
1
);
OUString
aHVal
=
getXPath
(
pXmlDoc
,
"/c:chartSpace/c:chart/c:plotArea/c:layout/c:manualLayout/c:h"
,
"val"
);
double
nH
=
aHVal
.
toDouble
();
CPPUNIT_ASSERT
(
nH
>
0
&&
nH
<
1
);
CPPUNIT_ASSERT
(
nH
!=
nW
);
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Chart2ExportTest
);
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
chart2/qa/extras/data/xlsx/plot_area_manual_layout.xlsx
0 → 100644
Dosyayı görüntüle @
967b8c33
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment