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
0aefc72f
Kaydet (Commit)
0aefc72f
authored
Ara 30, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Ara 30, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
correct test for fdo#81195
Change-Id: I961603e3ea20aae4f12705c2656864dcbe8e1eca
üst
339521b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
subsequent_export-test.cxx
sc/qa/unit/subsequent_export-test.cxx
+26
-0
No files found.
sc/qa/unit/subsequent_export-test.cxx
Dosyayı görüntüle @
0aefc72f
...
...
@@ -136,6 +136,7 @@ public:
void
testImageWithSpecialID
();
void
testSupBookVirtualPath
();
void
testSheetLocalRangeNameXLS
();
CPPUNIT_TEST_SUITE
(
ScExportTest
);
CPPUNIT_TEST
(
test
);
...
...
@@ -182,6 +183,7 @@ public:
CPPUNIT_TEST
(
testSwappedOutImageExport
);
CPPUNIT_TEST
(
testLinkedGraphicRT
);
CPPUNIT_TEST
(
testImageWithSpecialID
);
CPPUNIT_TEST
(
testSheetLocalRangeNameXLS
);
CPPUNIT_TEST_SUITE_END
();
...
...
@@ -2491,6 +2493,30 @@ void ScExportTest::testImageWithSpecialID()
}
}
void
ScExportTest
::
testSheetLocalRangeNameXLS
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"named-ranges-local."
,
XLS
);
xDocSh
->
DoHardRecalc
(
true
);
ScDocShellRef
xDocSh2
=
saveAndReload
(
xDocSh
,
XLS
);
xDocSh
->
DoClose
();
xDocSh2
->
DoHardRecalc
(
true
);
ScDocument
&
rDoc
=
xDocSh2
->
GetDocument
();
ScRangeName
*
pRangeName
=
rDoc
.
GetRangeName
(
0
);
CPPUNIT_ASSERT
(
pRangeName
);
CPPUNIT_ASSERT_EQUAL
(
size_t
(
2
),
pRangeName
->
size
());
OUString
aFormula
;
rDoc
.
GetFormula
(
3
,
11
,
0
,
aFormula
);
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"=SUM(local_name2)"
),
aFormula
);
ASSERT_DOUBLES_EQUAL
(
14.0
,
rDoc
.
GetValue
(
3
,
11
,
0
));
rDoc
.
GetFormula
(
6
,
4
,
0
,
aFormula
);
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"=local_name1"
),
aFormula
);
xDocSh2
->
DoClose
();
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
ScExportTest
);
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
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