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
a9924d94
Kaydet (Commit)
a9924d94
authored
Şub 18, 2015
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Şub 18, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add test for missing chart area style fill import, tdf#89451
Change-Id: I052838eaf4134a72feb067fc2a1355fabcafe11f
üst
32fe0c6a
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
chart-area-style-background.xlsx
chart2/qa/extras/data/xlsx/chart-area-style-background.xlsx
+0
-0
No files found.
chart2/qa/extras/chart2import.cxx
Dosyayı görüntüle @
a9924d94
...
...
@@ -56,6 +56,7 @@ public:
void
testFdo54361
();
void
testFdo54361_1
();
void
testAutoBackgroundXLSX
();
void
testChartAreaStyleBackgroundXLSX
();
// void testTextCanOverlapXLSX(); // TODO : temporarily disabled.
void
testNumberFormatsXLSX
();
...
...
@@ -87,6 +88,7 @@ public:
CPPUNIT_TEST
(
testFdo54361
);
CPPUNIT_TEST
(
testFdo54361_1
);
CPPUNIT_TEST
(
testAutoBackgroundXLSX
);
CPPUNIT_TEST
(
testChartAreaStyleBackgroundXLSX
);
// CPPUNIT_TEST(testTextCanOverlapXLSX); // TODO : temporarily disabled.
CPPUNIT_TEST
(
testNumberFormatsXLSX
);
CPPUNIT_TEST_SUITE_END
();
...
...
@@ -639,6 +641,23 @@ void Chart2ImportTest::testAutoBackgroundXLSX()
(
nColor
&
0x00FFFFFF
)
==
0x00FFFFFF
);
// highest 2 bytes are transparency which we ignore here.
}
void
Chart2ImportTest
::
testChartAreaStyleBackgroundXLSX
()
{
load
(
"/chart2/qa/extras/data/xlsx/"
,
"chart-area-style-background.xlsx"
);
uno
::
Reference
<
chart2
::
XChartDocument
>
xChartDoc
=
getChartDocFromSheet
(
0
,
mxComponent
);
CPPUNIT_ASSERT_MESSAGE
(
"failed to load chart"
,
xChartDoc
.
is
());
// "Automatic" chart background fill in xlsx should be loaded as solid white.
Reference
<
beans
::
XPropertySet
>
xPropSet
=
xChartDoc
->
getPageBackground
();
CPPUNIT_ASSERT
(
xPropSet
.
is
());
drawing
::
FillStyle
eStyle
=
xPropSet
->
getPropertyValue
(
"FillStyle"
).
get
<
drawing
::
FillStyle
>
();
sal_Int32
nColor
=
xPropSet
->
getPropertyValue
(
"FillColor"
).
get
<
sal_Int32
>
();
CPPUNIT_ASSERT_MESSAGE
(
"'Automatic' chart background fill in xlsx should be loaded as solid fill."
,
eStyle
==
drawing
::
FillStyle_SOLID
);
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"'Automatic' chart background fill in xlsx should be loaded as solid white."
,
sal_Int32
(
0
),
nColor
);
}
/* TODO : temporarily disabled.
void Chart2ImportTest::testTextCanOverlapXLSX()
{
...
...
chart2/qa/extras/data/xlsx/chart-area-style-background.xlsx
0 → 100644
Dosyayı görüntüle @
a9924d94
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