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
3cf0847e
Kaydet (Commit)
3cf0847e
authored
Şub 24, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#75304: Add test for external reference cache import from XLSX.
Change-Id: I93c4398b5673e1edaacfe4b68015000dfd224612
üst
a5257205
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
external-refs.xlsx
sc/qa/unit/data/xlsx/external-refs.xlsx
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+17
-0
No files found.
sc/qa/unit/data/xlsx/external-refs.xlsx
0 → 100644
Dosyayı görüntüle @
3cf0847e
File added
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
3cf0847e
...
...
@@ -159,6 +159,7 @@ public:
void
testColumnStyleXLSX
();
void
testSharedFormulaHorizontalXLS
();
void
testExternalRefCacheXLSX
();
CPPUNIT_TEST_SUITE
(
ScFiltersTest
);
CPPUNIT_TEST
(
testBasicCellContentODS
);
...
...
@@ -234,6 +235,7 @@ public:
CPPUNIT_TEST
(
testOutlineODS
);
CPPUNIT_TEST
(
testColumnStyleXLSX
);
CPPUNIT_TEST
(
testSharedFormulaHorizontalXLS
);
CPPUNIT_TEST
(
testExternalRefCacheXLSX
);
CPPUNIT_TEST_SUITE_END
();
private
:
...
...
@@ -2471,6 +2473,21 @@ void ScFiltersTest::testSharedFormulaHorizontalXLS()
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testExternalRefCacheXLSX
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"external-refs."
,
XLSX
);
CPPUNIT_ASSERT
(
xDocSh
.
Is
());
ScDocument
*
pDoc
=
xDocSh
->
GetDocument
();
// These string values are cached external cell values.
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Name"
),
pDoc
->
GetString
(
ScAddress
(
0
,
0
,
0
)));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Andy"
),
pDoc
->
GetString
(
ScAddress
(
0
,
1
,
0
)));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Bruce"
),
pDoc
->
GetString
(
ScAddress
(
0
,
2
,
0
)));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Charlie"
),
pDoc
->
GetString
(
ScAddress
(
0
,
3
,
0
)));
xDocSh
->
DoClose
();
}
ScFiltersTest
::
ScFiltersTest
()
:
ScBootstrapFixture
(
"/sc/qa/unit/data"
)
{
...
...
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