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
e60a0b4f
Kaydet (Commit)
e60a0b4f
authored
Nis 21, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
improve assertion messages
Change-Id: Ic3c83e670472a8882eddf8b4d29cf148a8e73d0d
üst
c5402612
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
chart2export.cxx
chart2/qa/extras/chart2export.cxx
+7
-7
No files found.
chart2/qa/extras/chart2export.cxx
Dosyayı görüntüle @
e60a0b4f
...
...
@@ -761,9 +761,9 @@ void Chart2ExportTest::testDataLabelBordersDOCX()
Sequence
<
sal_Int32
>
aIndices
;
xPropSet
->
getPropertyValue
(
"AttributedDataPoints"
)
>>=
aIndices
;
CPPUNIT_ASSERT_
MESSAGE
(
"There should be 2 data points with local properties."
,
aIndices
.
getLength
()
==
2
);
CPPUNIT_ASSERT
(
aIndices
[
0
]
==
0
);
CPPUNIT_ASSERT
(
aIndices
[
1
]
==
2
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
"There should be 2 data points with local properties."
,
sal_Int32
(
2
),
aIndices
.
getLength
()
);
CPPUNIT_ASSERT
_EQUAL
(
sal_Int32
(
0
),
aIndices
[
0
]
);
CPPUNIT_ASSERT
_EQUAL
(
sal_Int32
(
2
),
aIndices
[
1
]
);
const
Check
aDataPoints
[]
=
{
...
...
@@ -778,7 +778,7 @@ void Chart2ExportTest::testDataLabelBordersDOCX()
css
::
drawing
::
LineStyle
eLineStyle
=
css
::
drawing
::
LineStyle_NONE
;
xPropSet
->
getPropertyValue
(
CHART_UNONAME_LABEL_BORDER_STYLE
)
>>=
eLineStyle
;
CPPUNIT_ASSERT
(
eLineStyle
==
aDataPoints
[
i
].
m
eStyle
);
CPPUNIT_ASSERT
_EQUAL
(
aDataPoints
[
i
].
meStyle
,
eLin
eStyle
);
sal_Int32
nWidth
=
-
1
;
xPropSet
->
getPropertyValue
(
CHART_UNONAME_LABEL_BORDER_WIDTH
)
>>=
nWidth
;
...
...
@@ -786,7 +786,7 @@ void Chart2ExportTest::testDataLabelBordersDOCX()
sal_Int32
nColor
=
-
1
;
xPropSet
->
getPropertyValue
(
CHART_UNONAME_LABEL_BORDER_COLOR
)
>>=
nColor
;
CPPUNIT_ASSERT_
MESSAGE
(
"Border color is wrong."
,
nColor
==
aDataPoints
[
i
].
m
nColor
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
"Border color is wrong."
,
aDataPoints
[
i
].
mnColor
,
nColor
);
}
}
...
...
@@ -805,7 +805,7 @@ void Chart2ExportTest::testDataLabelBordersDOCX()
css
::
drawing
::
LineStyle
eLineStyle
=
css
::
drawing
::
LineStyle_NONE
;
xPropSet
->
getPropertyValue
(
CHART_UNONAME_LABEL_BORDER_STYLE
)
>>=
eLineStyle
;
CPPUNIT_ASSERT
(
eLineStyle
==
css
::
drawing
::
LineStyle_SOLID
);
CPPUNIT_ASSERT
_EQUAL
(
css
::
drawing
::
LineStyle_SOLID
,
eLineStyle
);
sal_Int32
nWidth
=
-
1
;
xPropSet
->
getPropertyValue
(
CHART_UNONAME_LABEL_BORDER_WIDTH
)
>>=
nWidth
;
...
...
@@ -813,7 +813,7 @@ void Chart2ExportTest::testDataLabelBordersDOCX()
sal_Int32
nColor
=
-
1
;
xPropSet
->
getPropertyValue
(
CHART_UNONAME_LABEL_BORDER_COLOR
)
>>=
nColor
;
CPPUNIT_ASSERT_
MESSAGE
(
"Border color should be green."
,
nColor
==
0x0000FF00
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
"Border color should be green."
,
sal_Int32
(
0x0000FF00
),
nColor
);
}
}
aTest
;
...
...
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