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
5bb5a9da
Kaydet (Commit)
5bb5a9da
authored
Şub 17, 2017
tarafından
Tamás Zolnai
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ChartDumpTest: Build fix
Change-Id: I2271cb393ad5268d1c579fb2f9c5e1e73a42c8f3
üst
a627c440
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
chart2dump.cxx
chart2/qa/extras/chart2dump/chart2dump.cxx
+16
-18
No files found.
chart2/qa/extras/chart2dump/chart2dump.cxx
Dosyayı görüntüle @
5bb5a9da
...
...
@@ -25,7 +25,11 @@
#include <fstream>
#if defined(X86)
#define INT_EPS 2.1
#else
#define INT_EPS 0.1
#endif
#define DECLARE_DUMP_TEST(TestName, BaseClass, DumpMode) \
class TestName : public BaseClass { \
...
...
@@ -639,10 +643,9 @@ DECLARE_DUMP_TEST(AxisGeometryTest, Chart2DumpTest, false)
}
}
#if !defined(MACOSX)
DECLARE_DUMP_TEST
(
AxisLabelTest
,
Chart2DumpTest
,
false
)
{
const
double
fLocalEPS
=
150.1
;
const
std
::
vector
<
OUString
>
aTestFiles
=
{
"default_formated_axis.odp"
,
...
...
@@ -698,18 +701,18 @@ DECLARE_DUMP_TEST(AxisLabelTest, Chart2DumpTest, false)
// Check size and position
uno
::
Reference
<
drawing
::
XShape
>
xLabelShape
(
xLabel
,
uno
::
UNO_QUERY
);
awt
::
Point
aLabelPosition
=
xLabelShape
->
getPosition
();
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aLabelPosition
.
X
,
INT_EPS
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aLabelPosition
.
Y
,
INT_EPS
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aLabelPosition
.
X
,
std
::
max
(
fLocalEPS
,
INT_EPS
)
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aLabelPosition
.
Y
,
std
::
max
(
fLocalEPS
,
INT_EPS
)
);
awt
::
Size
aLabelSize
=
xLabelShape
->
getSize
();
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aLabelSize
.
Height
,
INT_EPS
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aLabelSize
.
Width
,
INT_EPS
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aLabelSize
.
Height
,
std
::
max
(
fLocalEPS
,
INT_EPS
)
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aLabelSize
.
Width
,
std
::
max
(
fLocalEPS
,
INT_EPS
)
);
// Check transformation
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xLabelShape
,
UNO_QUERY_THROW
);
CPPUNIT_ASSERT
(
xPropSet
.
is
());
drawing
::
HomogenMatrix3
aLabelTransformation
;
xPropSet
->
getPropertyValue
(
"Transformation"
)
>>=
aLabelTransformation
;
CPPUNIT_DUMP_ASSERT_TRANSFORMATIONS_EQUAL
(
aLabelTransformation
,
INT_EPS
);
CPPUNIT_DUMP_ASSERT_TRANSFORMATIONS_EQUAL
(
aLabelTransformation
,
std
::
max
(
fLocalEPS
,
INT_EPS
)
);
// Check font color and height
util
::
Color
aLabelFontColor
=
0
;
...
...
@@ -723,8 +726,6 @@ DECLARE_DUMP_TEST(AxisLabelTest, Chart2DumpTest, false)
}
}
#endif
DECLARE_DUMP_TEST
(
ColumnBarChartTest
,
Chart2DumpTest
,
false
)
{
const
std
::
vector
<
OUString
>
aTestFiles
=
...
...
@@ -800,10 +801,9 @@ DECLARE_DUMP_TEST(ColumnBarChartTest, Chart2DumpTest, false)
}
}
#if !defined(MACOSX)
DECLARE_DUMP_TEST
(
ChartWallTest
,
Chart2DumpTest
,
false
)
{
const
double
fLocalEPS
=
400.1
;
const
std
::
vector
<
OUString
>
aTestFiles
=
{
"chartwall_auto_adjust_with_titles.ods"
,
...
...
@@ -827,18 +827,18 @@ DECLARE_DUMP_TEST(ChartWallTest, Chart2DumpTest, false)
// Check position and size
awt
::
Point
aChartWallPosition
=
xChartWall
->
getPosition
();
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aChartWallPosition
.
X
,
INT_EPS
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aChartWallPosition
.
Y
,
INT_EPS
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aChartWallPosition
.
X
,
std
::
max
(
fLocalEPS
,
INT_EPS
)
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aChartWallPosition
.
Y
,
std
::
max
(
fLocalEPS
,
INT_EPS
)
);
awt
::
Size
aChartWallSize
=
xChartWall
->
getSize
();
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aChartWallSize
.
Height
,
INT_EPS
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aChartWallSize
.
Width
,
INT_EPS
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aChartWallSize
.
Height
,
std
::
max
(
fLocalEPS
,
INT_EPS
)
);
CPPUNIT_DUMP_ASSERT_DOUBLES_EQUAL
(
aChartWallSize
.
Width
,
std
::
max
(
fLocalEPS
,
INT_EPS
)
);
// Check transformation
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xChartWall
,
UNO_QUERY_THROW
);
CPPUNIT_ASSERT
(
xPropSet
.
is
());
drawing
::
HomogenMatrix3
aChartWallTransformation
;
xPropSet
->
getPropertyValue
(
"Transformation"
)
>>=
aChartWallTransformation
;
CPPUNIT_DUMP_ASSERT_TRANSFORMATIONS_EQUAL
(
aChartWallTransformation
,
INT_EPS
);
CPPUNIT_DUMP_ASSERT_TRANSFORMATIONS_EQUAL
(
aChartWallTransformation
,
std
::
max
(
fLocalEPS
,
INT_EPS
)
);
// Check fill properties
drawing
::
FillStyle
aChartWallFillStyle
;
...
...
@@ -868,8 +868,6 @@ DECLARE_DUMP_TEST(ChartWallTest, Chart2DumpTest, false)
}
}
#endif
DECLARE_DUMP_TEST
(
PieChartTest
,
Chart2DumpTest
,
false
)
{
const
std
::
vector
<
OUString
>
aTestFiles
=
...
...
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