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
0222ce3c
Kaydet (Commit)
0222ce3c
authored
Eyl 23, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add color scale import test for xlsx
Change-Id: I8877d285be21ea4cd010cb532de593b3f5ab5975
üst
cb3ab592
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
colorScale.xlsx
sc/qa/unit/data/xlsx/colorScale.xlsx
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+22
-0
No files found.
sc/qa/unit/data/xlsx/colorScale.xlsx
0 → 100644
Dosyayı görüntüle @
0222ce3c
File added
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
0222ce3c
...
...
@@ -142,6 +142,7 @@ public:
void
testDataValidityODS
();
void
testColorScaleODS
();
void
testColorScaleXLSX
();
void
testDataBarODS
();
void
testNewCondFormat
();
...
...
@@ -194,6 +195,7 @@ public:
CPPUNIT_TEST
(
testControlImport
);
CPPUNIT_TEST
(
testColorScaleODS
);
CPPUNIT_TEST
(
testColorScaleXLSX
);
CPPUNIT_TEST
(
testDataBarODS
);
CPPUNIT_TEST
(
testNewCondFormat
);
...
...
@@ -1568,6 +1570,26 @@ void ScFiltersTest::testColorScaleODS()
testColorScale_Impl
(
pDoc
,
aBuffer
.
makeStringAndClear
());
}
void
ScFiltersTest
::
testColorScaleXLSX
()
{
const
rtl
::
OUString
aFileNameBase
(
RTL_CONSTASCII_USTRINGPARAM
(
"colorScale."
));
rtl
::
OUString
aFileExtension
(
aFileFormats
[
XLSX
].
pName
,
strlen
(
aFileFormats
[
XLSX
].
pName
),
RTL_TEXTENCODING_UTF8
);
rtl
::
OUString
aFilterName
(
aFileFormats
[
XLSX
].
pFilterName
,
strlen
(
aFileFormats
[
XLSX
].
pFilterName
),
RTL_TEXTENCODING_UTF8
)
;
rtl
::
OUString
aFileName
;
createFileURL
(
aFileNameBase
,
aFileExtension
,
aFileName
);
rtl
::
OUString
aFilterType
(
aFileFormats
[
XLSX
].
pTypeName
,
strlen
(
aFileFormats
[
XLSX
].
pTypeName
),
RTL_TEXTENCODING_UTF8
);
std
::
cout
<<
aFileFormats
[
XLSX
].
pName
<<
" Test"
<<
std
::
endl
;
ScDocShellRef
xDocSh
=
load
(
aFilterName
,
aFileName
,
rtl
::
OUString
(),
aFilterType
,
aFileFormats
[
XLSX
].
nFormatType
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to load colorScale.xlsx"
,
xDocSh
.
Is
());
ScDocument
*
pDoc
=
xDocSh
->
GetDocument
();
rtl
::
OUStringBuffer
aBuffer
(
getSrcRootPath
());
aBuffer
.
append
(
m_aBaseString
).
append
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"/reference/"
)));
testColorScale_Impl
(
pDoc
,
aBuffer
.
makeStringAndClear
());
}
void
ScFiltersTest
::
testDataBarODS
()
{
...
...
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