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
167ba3fe
Kaydet (Commit)
167ba3fe
authored
Kas 03, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add an import test for the new cond formats
Change-Id: I2c25604df183ce27845f9e01bb27ab92fc8ffbec
üst
81fd504f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
0 deletions
+50
-0
new_cond_format_test.csv
sc/qa/unit/data/contentCSV/new_cond_format_test.csv
+22
-0
new_cond_format_test.xlsx
sc/qa/unit/data/xlsx/new_cond_format_test.xlsx
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+28
-0
No files found.
sc/qa/unit/data/contentCSV/new_cond_format_test.csv
0 → 100644
Dosyayı görüntüle @
167ba3fe
,top n elements,,bottom n elements,,top n percent,,bottom n percent,,above average,,below average,,above equal average,,below equal average
,1,,1.00,,1,,1.00,,1,,1.00,,2,,2.00
,2,,2.00,,2,,2.00,,2,,2.00,,3,,3.00
,3,,3.00,,3,,3.00,,3,,3.00,,4,,4.00
,4,,4.00,,4,,4,,4,,4.00,,5,,5.00
,5,,5,,5,,5,,5,,5.00,,6,,6.00
,6,,6,,6,,6,,6,,6.00,,7,,7.00
,7,,7,,7,,7,,7,,7.00,,11.00,,11
,10,,10,,10,,10,,10.00,,10,,10.00,,10.00
,11,,11,,11,,11,,11.00,,11,,11.00,,11
,12,,12,,12,,12,,12.00,,12,,12.00,,12
,13,,13,,13,,13,,13.00,,13,,13.00,,13
,14,,14,,14,,14,,14.00,,14,,14.00,,14
,15.00,,15,,15,,15,,15.00,,15,,15.00,,15
,16.00,,16,,16,,16,,16.00,,16,,16.00,,16
,17.00,,17,,17,,17,,17.00,,17,,17.00,,17
,18.00,,18,,18.00,,18,,18.00,,18,,18.00,,18
,19.00,,19,,19.00,,19,,19.00,,19,,19.00,,19
,20.00,,20,,20.00,,20,,20.00,,20,,20.00,,20
,1,,1.00,,1,,1.00,,1,,1.00,,2,,2.00
,2,,2.00,,2,,2.00,,2,,2.00,,2,,2.00
,3,,3.00,,3,,3.00,,3,,3.00,,3,,3.00
sc/qa/unit/data/xlsx/new_cond_format_test.xlsx
0 → 100644
Dosyayı görüntüle @
167ba3fe
File added
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
167ba3fe
...
@@ -1664,12 +1664,40 @@ void ScFiltersTest::testColorScaleXLSX()
...
@@ -1664,12 +1664,40 @@ void ScFiltersTest::testColorScaleXLSX()
void
ScFiltersTest
::
testDataBarODS
()
void
ScFiltersTest
::
testDataBarODS
()
{
{
}
namespace
{
void
testNewCondFormatData
(
const
rtl
::
OUString
&
rFilePath
,
ScDocument
*
pDoc
)
{
}
}
}
void
ScFiltersTest
::
testNewCondFormat
()
void
ScFiltersTest
::
testNewCondFormat
()
{
{
const
rtl
::
OUString
aFileNameBase
(
"new_cond_format_test."
);
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
;
unsigned
int
nFormatType
=
aFileFormats
[
XLSX
].
nFormatType
;
unsigned
int
nClipboardId
=
nFormatType
?
SFX_FILTER_IMPORT
|
SFX_FILTER_USESOPTIONS
:
0
;
ScDocShellRef
xDocSh
=
load
(
aFilterName
,
aFileName
,
rtl
::
OUString
(),
aFilterType
,
nFormatType
,
nClipboardId
,
SOFFICE_FILEFORMAT_CURRENT
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to load new_cond_format_test.xlsx"
,
xDocSh
.
Is
());
ScDocument
*
pDoc
=
xDocSh
->
GetDocument
();
rtl
::
OUString
aCSVFile
(
"new_cond_format_test."
);
rtl
::
OUString
aCSVPath
;
createCSVPath
(
aCSVFile
,
aCSVPath
);
testCondFile
(
aCSVPath
,
pDoc
,
0
);
}
}
ScFiltersTest
::
ScFiltersTest
()
ScFiltersTest
::
ScFiltersTest
()
...
...
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