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
c673a1f1
Kaydet (Commit)
c673a1f1
authored
Eyl 18, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Test for setting current page back to '- all -' in pivot table.
Change-Id: I2fc0ac9609855273e47c492c72066dede9ff6850
üst
e7649f4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
ucalc.cxx
sc/qa/unit/ucalc.cxx
+24
-3
No files found.
sc/qa/unit/ucalc.cxx
Dosyayı görüntüle @
c673a1f1
...
...
@@ -1938,11 +1938,11 @@ void Test::testPivotTableFilters()
// Set current page of 'Group2' to 'A'.
ScDPSaveData
aSaveData
(
*
pDPObj
->
GetSaveData
());
ScDPSaveDimension
*
pDim
=
aSaveData
.
GetDimensionByName
(
ScDPSaveDimension
*
p
Page
Dim
=
aSaveData
.
GetDimensionByName
(
OUString
(
"Group2"
));
CPPUNIT_ASSERT_MESSAGE
(
"Dimension not found"
,
pDim
);
CPPUNIT_ASSERT_MESSAGE
(
"Dimension not found"
,
p
Page
Dim
);
OUString
aPage
(
"A"
);
pDim
->
SetCurrentPage
(
&
aPage
);
p
Page
Dim
->
SetCurrentPage
(
&
aPage
);
pDPObj
->
SetSaveData
(
aSaveData
);
aOutRange
=
refresh
(
pDPObj
);
{
...
...
@@ -1992,6 +1992,27 @@ void Test::testPivotTableFilters()
fTest
=
m_pDoc
->
GetValue
(
aFormulaAddr
);
CPPUNIT_ASSERT_MESSAGE
(
"Incorrect formula value that references a cell in the pivot table output."
,
fTest
==
20.0
);
// Set the current page of 'Group2' back to '- all -'. The query filter
// should still be in effect.
pPageDim
->
SetCurrentPage
(
NULL
);
// Remove the page.
pDPObj
->
SetSaveData
(
aSaveData
);
aOutRange
=
refresh
(
pDPObj
);
{
// Expected output table content. 0 = empty cell
const
char
*
aOutputCheck
[][
2
]
=
{
{
"Filter"
,
0
},
{
"Group2"
,
"- all -"
},
{
0
,
0
},
{
"Data"
,
0
},
{
"Sum - Val1"
,
"4"
},
{
"Sum - Val2"
,
"40"
}
};
bSuccess
=
checkDPTableOutput
<
2
>
(
m_pDoc
,
aOutRange
,
aOutputCheck
,
"DataPilot table output (filtered by page)"
);
CPPUNIT_ASSERT_MESSAGE
(
"Table output check failed"
,
bSuccess
);
}
pDPs
->
FreeTable
(
pDPObj
);
CPPUNIT_ASSERT_MESSAGE
(
"There shouldn't be any data pilot table stored with the document."
,
pDPs
->
GetCount
()
==
0
);
...
...
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