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
0c24686c
Kaydet (Commit)
0c24686c
authored
Ara 29, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Ara 29, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add test for fdo#80091
Change-Id: I8b62c0980275537adea7a4de44d4fe86995da92f
üst
16bfddca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
relative-refs.xls
sc/qa/unit/data/xls/shared-formula/relative-refs.xls
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+23
-0
No files found.
sc/qa/unit/data/xls/shared-formula/relative-refs.xls
0 → 100644
Dosyayı görüntüle @
0c24686c
File added
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
0c24686c
...
@@ -174,6 +174,7 @@ public:
...
@@ -174,6 +174,7 @@ public:
void
testSharedFormulaWrappedRefsXLS
();
void
testSharedFormulaWrappedRefsXLS
();
void
testSharedFormulaBIFF5
();
void
testSharedFormulaBIFF5
();
void
testSharedFormulaXLSB
();
void
testSharedFormulaXLSB
();
void
testSharedFormulaXLS
();
void
testExternalRefCacheXLSX
();
void
testExternalRefCacheXLSX
();
void
testExternalRefCacheODS
();
void
testExternalRefCacheODS
();
void
testHybridSharedStringODS
();
void
testHybridSharedStringODS
();
...
@@ -257,6 +258,7 @@ public:
...
@@ -257,6 +258,7 @@ public:
CPPUNIT_TEST
(
testSharedFormulaWrappedRefsXLS
);
CPPUNIT_TEST
(
testSharedFormulaWrappedRefsXLS
);
CPPUNIT_TEST
(
testSharedFormulaBIFF5
);
CPPUNIT_TEST
(
testSharedFormulaBIFF5
);
CPPUNIT_TEST
(
testSharedFormulaXLSB
);
CPPUNIT_TEST
(
testSharedFormulaXLSB
);
CPPUNIT_TEST
(
testSharedFormulaXLS
);
CPPUNIT_TEST
(
testExternalRefCacheXLSX
);
CPPUNIT_TEST
(
testExternalRefCacheXLSX
);
CPPUNIT_TEST
(
testExternalRefCacheODS
);
CPPUNIT_TEST
(
testExternalRefCacheODS
);
CPPUNIT_TEST
(
testHybridSharedStringODS
);
CPPUNIT_TEST
(
testHybridSharedStringODS
);
...
@@ -2579,6 +2581,27 @@ void ScFiltersTest::testSharedFormulaXLSB()
...
@@ -2579,6 +2581,27 @@ void ScFiltersTest::testSharedFormulaXLSB()
xDocSh
->
DoClose
();
xDocSh
->
DoClose
();
}
}
void
ScFiltersTest
::
testSharedFormulaXLS
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"shared-formula/relative-refs."
,
XLS
);
CPPUNIT_ASSERT
(
xDocSh
.
Is
());
ScDocument
&
rDoc
=
xDocSh
->
GetDocument
();
rDoc
.
CalcAll
();
// A1:A30 should be all formulas, and they should belong to the same group.
const
ScFormulaCell
*
pFC
=
rDoc
.
GetFormulaCell
(
ScAddress
(
0
,
1
,
0
));
CPPUNIT_ASSERT
(
pFC
);
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
SCROW
>
(
1
),
pFC
->
GetSharedTopRow
());
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
SCROW
>
(
29
),
pFC
->
GetSharedLength
());
for
(
SCROW
nRow
=
0
;
nRow
<
30
;
++
nRow
)
{
ASSERT_DOUBLES_EQUAL
(
double
(
nRow
+
1
),
rDoc
.
GetValue
(
0
,
nRow
,
0
));
}
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testExternalRefCacheXLSX
()
void
ScFiltersTest
::
testExternalRefCacheXLSX
()
{
{
ScDocShellRef
xDocSh
=
loadDoc
(
"external-refs."
,
XLSX
);
ScDocShellRef
xDocSh
=
loadDoc
(
"external-refs."
,
XLSX
);
...
...
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