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
b13534de
Kaydet (Commit)
b13534de
authored
Şub 19, 2015
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Şub 19, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add test for tdf#89454
Change-Id: Iefb52f6fa77cf90955dbb47c1b9ca7ab699a43eb
üst
0d1bd8c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
chart2import.cxx
chart2/qa/extras/chart2import.cxx
+19
-0
axis-label-rotation.xlsx
chart2/qa/extras/data/xlsx/axis-label-rotation.xlsx
+0
-0
No files found.
chart2/qa/extras/chart2import.cxx
Dosyayı görüntüle @
b13534de
...
@@ -57,6 +57,7 @@ public:
...
@@ -57,6 +57,7 @@ public:
void
testFdo54361_1
();
void
testFdo54361_1
();
void
testAutoBackgroundXLSX
();
void
testAutoBackgroundXLSX
();
void
testChartAreaStyleBackgroundXLSX
();
void
testChartAreaStyleBackgroundXLSX
();
void
testAxisTextRotationXLSX
();
// void testTextCanOverlapXLSX(); // TODO : temporarily disabled.
// void testTextCanOverlapXLSX(); // TODO : temporarily disabled.
void
testNumberFormatsXLSX
();
void
testNumberFormatsXLSX
();
...
@@ -89,6 +90,7 @@ public:
...
@@ -89,6 +90,7 @@ public:
CPPUNIT_TEST
(
testFdo54361_1
);
CPPUNIT_TEST
(
testFdo54361_1
);
CPPUNIT_TEST
(
testAutoBackgroundXLSX
);
CPPUNIT_TEST
(
testAutoBackgroundXLSX
);
CPPUNIT_TEST
(
testChartAreaStyleBackgroundXLSX
);
CPPUNIT_TEST
(
testChartAreaStyleBackgroundXLSX
);
CPPUNIT_TEST
(
testAxisTextRotationXLSX
);
// CPPUNIT_TEST(testTextCanOverlapXLSX); // TODO : temporarily disabled.
// CPPUNIT_TEST(testTextCanOverlapXLSX); // TODO : temporarily disabled.
CPPUNIT_TEST
(
testNumberFormatsXLSX
);
CPPUNIT_TEST
(
testNumberFormatsXLSX
);
CPPUNIT_TEST_SUITE_END
();
CPPUNIT_TEST_SUITE_END
();
...
@@ -658,6 +660,23 @@ void Chart2ImportTest::testChartAreaStyleBackgroundXLSX()
...
@@ -658,6 +660,23 @@ void Chart2ImportTest::testChartAreaStyleBackgroundXLSX()
sal_Int32
(
0
),
nColor
);
sal_Int32
(
0
),
nColor
);
}
}
void
Chart2ImportTest
::
testAxisTextRotationXLSX
()
{
load
(
"/chart2/qa/extras/data/xlsx/"
,
"axis-label-rotation.xlsx"
);
uno
::
Reference
<
chart2
::
XChartDocument
>
xChartDoc
=
getChartDocFromSheet
(
0
,
mxComponent
);
CPPUNIT_ASSERT_MESSAGE
(
"failed to load chart"
,
xChartDoc
.
is
());
Reference
<
chart2
::
XAxis
>
xYAxis
=
getAxisFromDoc
(
xChartDoc
,
0
,
0
,
0
);
CPPUNIT_ASSERT
(
xYAxis
.
is
());
Reference
<
beans
::
XPropertySet
>
xPS
(
xYAxis
,
uno
::
UNO_QUERY_THROW
);
double
nRotation
=
0
;
bool
bSuccess
=
xPS
->
getPropertyValue
(
"TextRotation"
)
>>=
nRotation
;
CPPUNIT_ASSERT
(
bSuccess
);
CPPUNIT_ASSERT_DOUBLES_EQUAL
(
90
,
nRotation
,
1e-10
);
}
/* TODO : temporarily disabled.
/* TODO : temporarily disabled.
void Chart2ImportTest::testTextCanOverlapXLSX()
void Chart2ImportTest::testTextCanOverlapXLSX()
{
{
...
...
chart2/qa/extras/data/xlsx/axis-label-rotation.xlsx
0 → 100644
Dosyayı görüntüle @
b13534de
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