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
23085e3b
Kaydet (Commit)
23085e3b
authored
Mar 28, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make test more robust
Change-Id: I699cd0b64a789f0529a47f9128267b65ae1d1165
üst
692a5dca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
chart2import.cxx
chart2/qa/extras/chart2import.cxx
+17
-9
No files found.
chart2/qa/extras/chart2import.cxx
Dosyayı görüntüle @
23085e3b
...
@@ -82,22 +82,30 @@ void Chart2ImportTest::Fdo60083()
...
@@ -82,22 +82,30 @@ void Chart2ImportTest::Fdo60083()
CPPUNIT_ASSERT
(
xErrorBarYProps
.
is
());
CPPUNIT_ASSERT
(
xErrorBarYProps
.
is
());
{
{
sal_Int32
nErrorBarStyle
;
sal_Int32
nErrorBarStyle
;
xErrorBarYProps
->
getPropertyValue
(
"ErrorBarStyle"
)
>>=
nErrorBarStyle
;
CPPUNIT_ASSERT
(
CPPUNIT_ASSERT_EQUAL
(
nErrorBarStyle
,
static_cast
<
sal_Int32
>
(
chart
::
ErrorBarStyle
::
RELATIVE
));
xErrorBarYProps
->
getPropertyValue
(
"ErrorBarStyle"
)
>>=
nErrorBarStyle
);
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
sal_Int32
>
(
chart
::
ErrorBarStyle
::
RELATIVE
),
nErrorBarStyle
);
double
nVal
;
double
nVal
;
xErrorBarYProps
->
getPropertyValue
(
"PositiveError"
)
>>=
nVal
;
CPPUNIT_ASSERT
(
xErrorBarYProps
->
getPropertyValue
(
"PositiveError"
)
>>=
nVal
);
CPPUNIT_ASSERT_DOUBLES_EQUAL
(
5.0
,
nVal
,
1e-8
);
CPPUNIT_ASSERT_DOUBLES_EQUAL
(
5.0
,
nVal
,
1e-8
);
xErrorBarYProps
->
getPropertyValue
(
"NegativeError"
)
>>=
nVal
;
CPPUNIT_ASSERT
(
xErrorBarYProps
->
getPropertyValue
(
"NegativeError"
)
>>=
nVal
);
CPPUNIT_ASSERT_DOUBLES_EQUAL
(
5.0
,
nVal
,
1e-8
);
CPPUNIT_ASSERT_DOUBLES_EQUAL
(
5.0
,
nVal
,
1e-8
);
sal_Bool
bVal
;
bool
bVal
;
xErrorBarYProps
->
getPropertyValue
(
"ShowPositiveError"
)
>>=
bVal
;
CPPUNIT_ASSERT
(
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
bool
>
(
bVal
),
true
);
xErrorBarYProps
->
getPropertyValue
(
"ShowPositiveError"
)
>>=
bVal
);
CPPUNIT_ASSERT_EQUAL
(
bVal
,
true
);
xErrorBarYProps
->
getPropertyValue
(
"ShowNegativeError"
)
>>=
bVal
;
CPPUNIT_ASSERT
(
CPPUNIT_ASSERT_EQUAL
(
static_cast
<
bool
>
(
bVal
),
true
);
xErrorBarYProps
->
getPropertyValue
(
"ShowNegativeError"
)
>>=
bVal
);
CPPUNIT_ASSERT_EQUAL
(
bVal
,
true
);
}
}
// test that x error bars are not imported
// test that x error bars are not imported
...
...
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