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
23159e5a
Kaydet (Commit)
23159e5a
authored
Şub 10, 2015
tarafından
Ursache Vladimir
Kaydeden (comit)
Markus Mohrhard
Şub 14, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#68117 Unit test
Change-Id: I2c1b935648ea2728878f606dfe8a141c3c1ddda2
üst
480de8e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
check-boolean.xlsx
sc/qa/unit/data/xlsx/check-boolean.xlsx
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+26
-0
No files found.
sc/qa/unit/data/xlsx/check-boolean.xlsx
0 → 100644
Dosyayı görüntüle @
23159e5a
File added
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
23159e5a
...
...
@@ -18,6 +18,9 @@
#include <sfx2/docfile.hxx>
#include <sfx2/sfxmodelfactory.hxx>
#include <svl/stritem.hxx>
#include <svl/nfkeytab.hxx>
//#include <zformat.hxx>
#include <svl/zformat.hxx>
#include <svx/svdograf.hxx>
#include "drwlayer.hxx"
...
...
@@ -86,6 +89,7 @@ public:
virtual
void
tearDown
()
SAL_OVERRIDE
;
//ods, xls, xlsx filter tests
void
testBooleanFormatXLSX
();
void
testBasicCellContentODS
();
void
testRangeNameXLS
();
void
testRangeNameLocalXLS
();
...
...
@@ -186,6 +190,7 @@ public:
void
testEmbeddedImageXLS
();
CPPUNIT_TEST_SUITE
(
ScFiltersTest
);
CPPUNIT_TEST
(
testBooleanFormatXLSX
);
CPPUNIT_TEST
(
testBasicCellContentODS
);
CPPUNIT_TEST
(
testRangeNameXLS
);
CPPUNIT_TEST
(
testRangeNameLocalXLS
);
...
...
@@ -352,6 +357,27 @@ void ScFiltersTest::testBasicCellContentODS()
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testBooleanFormatXLSX
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"check-boolean."
,
XLSX
);
ScDocument
&
rDoc
=
xDocSh
->
GetDocument
();
SvNumberFormatter
*
pNumFormatter
=
rDoc
.
GetFormatTable
();
const
OUString
aBooleanTypeStr
=
"
\"
TRUE
\"
;
\"
TRUE
\"
;
\"
FALSE
\"
"
;
CPPUNIT_ASSERT_MESSAGE
(
"Failed to load check-boolean.xlsx"
,
xDocSh
.
Is
());
sal_uInt32
nNumberFormat
;
for
(
SCROW
i
=
0
;
i
<=
1
;
i
++
)
{
rDoc
.
GetNumberFormat
(
0
,
i
,
0
,
nNumberFormat
);
const
SvNumberformat
*
pSvnumberFormat
=
pNumFormatter
->
GetEntry
(
nNumberFormat
);
const
OUString
&
rFormatStr
=
pSvnumberFormat
->
GetFormatstring
();
CPPUNIT_ASSERT_MESSAGE
(
"Number format != boolean"
,
rFormatStr
==
aBooleanTypeStr
);
}
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testRangeNameXLS
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"named-ranges-global."
,
XLS
);
...
...
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