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
04658a79
Kaydet (Commit)
04658a79
authored
Tem 06, 2012
tarafından
Daniel Bankston
Kaydeden (comit)
Kohei Yoshida
Tem 12, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add test for hard recalc
Change-Id: I0fdbac47d6049d4a8b0b100eb1ce0fdab3eed262
üst
adaf0d9b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
hard-recalc.csv
sc/qa/unit/data/contentCSV/hard-recalc.csv
+1
-0
hard-recalc.ods
sc/qa/unit/data/ods/hard-recalc.ods
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+20
-0
No files found.
sc/qa/unit/data/contentCSV/hard-recalc.csv
0 → 100644
Dosyayı görüntüle @
04658a79
2+2=,4
sc/qa/unit/data/ods/hard-recalc.ods
0 → 100644
Dosyayı görüntüle @
04658a79
File added
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
04658a79
...
...
@@ -106,6 +106,7 @@ public:
//ods, xls, xlsx filter tests
void
testRangeNameXLS
();
void
testRangeNameXLSX
();
void
testHardRecalcODS
();
void
testFunctionsODS
();
void
testDatabaseRangesODS
();
void
testDatabaseRangesXLS
();
...
...
@@ -139,6 +140,7 @@ public:
CPPUNIT_TEST_SUITE
(
ScFiltersTest
);
CPPUNIT_TEST
(
testRangeNameXLS
);
CPPUNIT_TEST
(
testRangeNameXLSX
);
CPPUNIT_TEST
(
testHardRecalcODS
);
CPPUNIT_TEST
(
testFunctionsODS
);
CPPUNIT_TEST
(
testDatabaseRangesODS
);
CPPUNIT_TEST
(
testDatabaseRangesXLS
);
...
...
@@ -313,6 +315,24 @@ void ScFiltersTest::testRangeNameXLSX()
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testHardRecalcODS
()
{
const
rtl
::
OUString
aFileNameBase
(
RTL_CONSTASCII_USTRINGPARAM
(
"hard-recalc."
));
ScDocShellRef
xDocSh
=
loadDoc
(
aFileNameBase
,
ODS
);
xDocSh
->
DoHardRecalc
(
true
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to load functions.*"
,
xDocSh
.
Is
());
ScDocument
*
pDoc
=
xDocSh
->
GetDocument
();
rtl
::
OUString
aCSVFileName
;
//test hard recalc: document has an incorrect cached formula result
//hard recalc should have updated to the correct result
createCSVPath
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"hard-recalc."
)),
aCSVFileName
);
testFile
(
aCSVFileName
,
pDoc
,
0
);
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testFunctionsODS
()
{
const
rtl
::
OUString
aFileNameBase
(
RTL_CONSTASCII_USTRINGPARAM
(
"functions."
));
...
...
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