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
1f70bfcd
Kaydet (Commit)
1f70bfcd
authored
Nis 26, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#76611: Write test for this.
Change-Id: Ib2852ccf8c19f9ed0fc5edda0b197d9801affae6
üst
b08754f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
wrapped-refs.xls
sc/qa/unit/data/xls/shared-formula/wrapped-refs.xls
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+30
-0
No files found.
sc/qa/unit/data/xls/shared-formula/wrapped-refs.xls
0 → 100644
Dosyayı görüntüle @
1f70bfcd
File added
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
1f70bfcd
...
...
@@ -169,6 +169,7 @@ public:
void
testColumnStyleXLSX
();
void
testSharedFormulaHorizontalXLS
();
void
testSharedFormulaWrappedRefsXLS
();
void
testExternalRefCacheXLSX
();
void
testExternalRefCacheODS
();
...
...
@@ -244,6 +245,7 @@ public:
CPPUNIT_TEST
(
testOutlineODS
);
CPPUNIT_TEST
(
testColumnStyleXLSX
);
CPPUNIT_TEST
(
testSharedFormulaHorizontalXLS
);
CPPUNIT_TEST
(
testSharedFormulaWrappedRefsXLS
);
CPPUNIT_TEST
(
testExternalRefCacheXLSX
);
CPPUNIT_TEST
(
testExternalRefCacheODS
);
CPPUNIT_TEST_SUITE_END
();
...
...
@@ -2481,6 +2483,34 @@ void ScFiltersTest::testSharedFormulaHorizontalXLS()
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testSharedFormulaWrappedRefsXLS
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"shared-formula/wrapped-refs."
,
XLS
);
CPPUNIT_ASSERT
(
xDocSh
.
Is
());
ScDocument
*
pDoc
=
xDocSh
->
GetDocument
();
pDoc
->
CalcAll
();
// Check the values of H7:H10.
CPPUNIT_ASSERT_EQUAL
(
7.0
,
pDoc
->
GetValue
(
ScAddress
(
7
,
6
,
0
)));
CPPUNIT_ASSERT_EQUAL
(
8.0
,
pDoc
->
GetValue
(
ScAddress
(
7
,
7
,
0
)));
CPPUNIT_ASSERT_EQUAL
(
9.0
,
pDoc
->
GetValue
(
ScAddress
(
7
,
8
,
0
)));
CPPUNIT_ASSERT_EQUAL
(
10.0
,
pDoc
->
GetValue
(
ScAddress
(
7
,
9
,
0
)));
// EM7:EM10 should reference H7:H10.
CPPUNIT_ASSERT_EQUAL
(
7.0
,
pDoc
->
GetValue
(
ScAddress
(
142
,
6
,
0
)));
CPPUNIT_ASSERT_EQUAL
(
8.0
,
pDoc
->
GetValue
(
ScAddress
(
142
,
7
,
0
)));
CPPUNIT_ASSERT_EQUAL
(
9.0
,
pDoc
->
GetValue
(
ScAddress
(
142
,
8
,
0
)));
CPPUNIT_ASSERT_EQUAL
(
10.0
,
pDoc
->
GetValue
(
ScAddress
(
142
,
9
,
0
)));
// Make sure EM7:EM10 are grouped.
const
ScFormulaCell
*
pFC
=
pDoc
->
GetFormulaCell
(
ScAddress
(
142
,
6
,
0
));
CPPUNIT_ASSERT
(
pFC
);
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
SCROW
>
(
6
),
pFC
->
GetSharedTopRow
());
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
SCROW
>
(
4
),
pFC
->
GetSharedLength
());
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testExternalRefCacheXLSX
()
{
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