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
bd378b63
Kaydet (Commit)
bd378b63
authored
Mar 10, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#75962: Write test for this first.
Change-Id: I731b4cbf72066f8a0cbabb5040acfe9c828afd8f
üst
02abb559
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
ucalc_pivottable.cxx
sc/qa/unit/ucalc_pivottable.cxx
+25
-0
No files found.
sc/qa/unit/ucalc_pivottable.cxx
Dosyayı görüntüle @
bd378b63
...
@@ -1668,6 +1668,31 @@ void Test::testPivotTableTextNumber()
...
@@ -1668,6 +1668,31 @@ void Test::testPivotTableTextNumber()
CPPUNIT_ASSERT_MESSAGE
(
"Table output check failed"
,
bSuccess
);
CPPUNIT_ASSERT_MESSAGE
(
"Table output check failed"
,
bSuccess
);
}
}
// Set the Name dimension to page dimension.
pDPObj
->
BuildAllDimensionMembers
();
ScDPSaveData
aSaveData
(
*
pDPObj
->
GetSaveData
());
ScDPSaveDimension
*
pDim
=
aSaveData
.
GetExistingDimensionByName
(
"Name"
);
CPPUNIT_ASSERT
(
pDim
);
pDim
->
SetOrientation
(
sheet
::
DataPilotFieldOrientation_PAGE
);
OUString
aVisiblePage
(
"0004"
);
pDim
->
SetCurrentPage
(
&
aVisiblePage
);
pDPObj
->
SetSaveData
(
aSaveData
);
aOutRange
=
refresh
(
pDPObj
);
{
// Expected output table content. 0 = empty cell
const
char
*
aOutputCheck
[][
2
]
=
{
{
"Name"
,
"0004"
},
{
0
,
0
},
{
"Sum - Value"
,
0
},
{
"4"
,
0
}
};
bSuccess
=
checkDPTableOutput
<
2
>
(
m_pDoc
,
aOutRange
,
aOutputCheck
,
"Text number field members"
);
CPPUNIT_ASSERT_MESSAGE
(
"Table output check failed"
,
bSuccess
);
}
pDPs
->
FreeTable
(
pDPObj
);
pDPs
->
FreeTable
(
pDPObj
);
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"There should be no more tables."
,
pDPs
->
GetCount
(),
static_cast
<
size_t
>
(
0
));
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"There should be no more tables."
,
pDPs
->
GetCount
(),
static_cast
<
size_t
>
(
0
));
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"There shouldn't be any more cache stored."
,
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"There shouldn't be any more cache stored."
,
...
...
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