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
02b6abe8
Kaydet (Commit)
02b6abe8
authored
10 years ago
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add test for tdf#91335
Change-Id: I27d70b5c3bdba01a57fa66416da725a426c6b784
üst
2ae89f59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
cond_parent.xlsx
sc/qa/unit/data/xlsx/cond_parent.xlsx
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+17
-0
No files found.
sc/qa/unit/data/xlsx/cond_parent.xlsx
0 → 100644
Dosyayı görüntüle @
02b6abe8
File added
This diff is collapsed.
Click to expand it.
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
02b6abe8
...
...
@@ -32,6 +32,7 @@
#include <editeng/editobj.hxx>
#include <editeng/borderline.hxx>
#include <editeng/flditem.hxx>
#include <editeng/justifyitem.hxx>
#include <dbdata.hxx>
#include "validat.hxx"
#include "formulacell.hxx"
...
...
@@ -138,6 +139,7 @@ public:
void
testCondFormatThemeColorXLSX
();
void
testCondFormatThemeColor2XLSX
();
// negative bar color and axis color
void
testComplexIconSetsXLSX
();
void
testCondFormatParentXLSX
();
void
testLiteralInFormulaXLS
();
...
...
@@ -247,6 +249,7 @@ public:
CPPUNIT_TEST
(
testCondFormatThemeColorXLSX
);
CPPUNIT_TEST
(
testCondFormatThemeColor2XLSX
);
CPPUNIT_TEST
(
testComplexIconSetsXLSX
);
CPPUNIT_TEST
(
testCondFormatParentXLSX
);
CPPUNIT_TEST
(
testLiteralInFormulaXLS
);
CPPUNIT_TEST
(
testNumberFormatHTML
);
...
...
@@ -2469,6 +2472,20 @@ void ScFiltersTest::testComplexIconSetsXLSX()
testCustomIconSetsXLSX_Impl
(
rDoc
,
3
,
3
,
IconSet_3Arrows
,
2
);
}
void
ScFiltersTest
::
testCondFormatParentXLSX
()
{
ScDocShellRef
xDocSh
=
ScBootstrapFixture
::
loadDoc
(
"cond_parent."
,
XLSX
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to load cond_parent.xlsx"
,
xDocSh
.
Is
());
ScDocument
&
rDoc
=
xDocSh
->
GetDocument
();
const
SfxItemSet
*
pCondSet
=
rDoc
.
GetCondResult
(
2
,
5
,
0
);
const
ScPatternAttr
*
pPattern
=
rDoc
.
GetPattern
(
2
,
5
,
0
);
const
SfxPoolItem
&
rPoolItem
=
pPattern
->
GetItem
(
ATTR_VER_JUSTIFY
,
pCondSet
);
const
SvxVerJustifyItem
&
rVerJustify
=
static_cast
<
const
SvxVerJustifyItem
&>
(
rPoolItem
);
CPPUNIT_ASSERT_EQUAL
(
SVX_VER_JUSTIFY_TOP
,
static_cast
<
SvxCellVerJustify
>
(
rVerJustify
.
GetValue
()));
}
void
ScFiltersTest
::
testLiteralInFormulaXLS
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"shared-string/literal-in-formula."
,
XLS
);
...
...
This diff is collapsed.
Click to expand it.
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