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
42d86800
Kaydet (Commit)
42d86800
authored
Şub 04, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:fpcomparison
Change-Id: I084b63d1085976838426f1157e0ba238e0520d7f
üst
bbcb4c94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
canvasbitmaptest.cxx
vcl/qa/cppunit/canvasbitmaptest.cxx
+7
-5
No files found.
vcl/qa/cppunit/canvasbitmaptest.cxx
Dosyayı görüntüle @
42d86800
...
...
@@ -156,9 +156,11 @@ void checkCanvasBitmap( const rtl::Reference<VclCanvasBitmap>& xBmp,
std
::
none_of
(
pRGBStart
,
pRGBEnd
,
&
rangeCheck
));
CPPUNIT_ASSERT_MESSAGE
(
"First pixel is not white"
,
pRGBStart
[
0
].
Red
==
1.0
&&
pRGBStart
[
0
].
Green
==
1.0
&&
pRGBStart
[
0
].
Blue
==
1.0
);
rtl
::
math
::
approxEqual
(
pRGBStart
[
0
].
Red
,
1.0
)
&&
rtl
::
math
::
approxEqual
(
pRGBStart
[
0
].
Green
,
1.0
)
&&
rtl
::
math
::
approxEqual
(
pRGBStart
[
0
].
Blue
,
1.0
)
);
CPPUNIT_ASSERT_MESSAGE
(
"Second pixel is not opaque"
,
pARGBStart
[
1
].
Alpha
==
1.0
);
rtl
::
math
::
approxEqual
(
pARGBStart
[
1
].
Alpha
,
1.0
)
);
if
(
aContainedBmpEx
.
IsTransparent
()
)
{
CPPUNIT_ASSERT_MESSAGE
(
"First pixel is not fully transparent"
,
...
...
@@ -198,9 +200,9 @@ void checkCanvasBitmap( const rtl::Reference<VclCanvasBitmap>& xBmp,
}
CPPUNIT_ASSERT_MESSAGE
(
"150th pixel is not white"
,
pRGBStart
[
150
].
Red
==
1.0
&&
pRGBStart
[
150
].
Green
==
1.0
&&
pRGBStart
[
150
].
Blue
==
1.0
);
rtl
::
math
::
approxEqual
(
pRGBStart
[
150
].
Red
,
1.0
)
&&
rtl
::
math
::
approxEqual
(
pRGBStart
[
150
].
Green
,
1.0
)
&&
rtl
::
math
::
approxEqual
(
pRGBStart
[
150
].
Blue
,
1.0
)
);
if
(
nOriginalDepth
>
8
)
{
...
...
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