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
339521b5
Kaydet (Commit)
339521b5
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
add test for fdo#81195
Change-Id: If19f4067d53c2c614f6afcc0d6349db6ec2fd602
üst
4ebdadfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
named-ranges-local.xls
sc/qa/unit/data/xls/named-ranges-local.xls
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+23
-0
No files found.
sc/qa/unit/data/xls/named-ranges-local.xls
0 → 100644
Dosyayı görüntüle @
339521b5
File added
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
339521b5
...
@@ -88,6 +88,7 @@ public:
...
@@ -88,6 +88,7 @@ public:
//ods, xls, xlsx filter tests
//ods, xls, xlsx filter tests
void
testBasicCellContentODS
();
void
testBasicCellContentODS
();
void
testRangeNameXLS
();
void
testRangeNameXLS
();
void
testRangeNameLocalXLS
();
void
testRangeNameXLSX
();
void
testRangeNameXLSX
();
void
testHyperlinksXLSX
();
void
testHyperlinksXLSX
();
void
testHardRecalcODS
();
void
testHardRecalcODS
();
...
@@ -185,6 +186,7 @@ public:
...
@@ -185,6 +186,7 @@ public:
CPPUNIT_TEST_SUITE
(
ScFiltersTest
);
CPPUNIT_TEST_SUITE
(
ScFiltersTest
);
CPPUNIT_TEST
(
testBasicCellContentODS
);
CPPUNIT_TEST
(
testBasicCellContentODS
);
CPPUNIT_TEST
(
testRangeNameXLS
);
CPPUNIT_TEST
(
testRangeNameXLS
);
CPPUNIT_TEST
(
testRangeNameLocalXLS
);
CPPUNIT_TEST
(
testRangeNameXLSX
);
CPPUNIT_TEST
(
testRangeNameXLSX
);
CPPUNIT_TEST
(
testHyperlinksXLSX
);
CPPUNIT_TEST
(
testHyperlinksXLSX
);
CPPUNIT_TEST
(
testHardRecalcODS
);
CPPUNIT_TEST
(
testHardRecalcODS
);
...
@@ -363,6 +365,27 @@ void ScFiltersTest::testRangeNameXLS()
...
@@ -363,6 +365,27 @@ void ScFiltersTest::testRangeNameXLS()
xDocSh
->
DoClose
();
xDocSh
->
DoClose
();
}
}
void
ScFiltersTest
::
testRangeNameLocalXLS
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"named-ranges-local."
,
XLS
);
xDocSh
->
DoHardRecalc
(
true
);
ScDocument
&
rDoc
=
xDocSh
->
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
);
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testRangeNameXLSX
()
void
ScFiltersTest
::
testRangeNameXLSX
()
{
{
ScDocShellRef
xDocSh
=
loadDoc
(
"named-ranges-global."
,
XLSX
);
ScDocShellRef
xDocSh
=
loadDoc
(
"named-ranges-global."
,
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