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
7ae75562
Kaydet (Commit)
7ae75562
authored
Şub 26, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make test device independent
Change-Id: Id6f835a9eb8d679b293114a887a81dbf47260bbf
üst
19395775
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+10
-9
No files found.
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
7ae75562
...
...
@@ -59,6 +59,7 @@
#include <com/sun/star/style/PageStyleLayout.hpp>
#include <com/sun/star/style/ParagraphAdjust.hpp>
#include <com/sun/star/util/DateTime.hpp>
#include <vcl/bmpacc.hxx>
#include <vcl/svapp.hxx>
#include <unotest/assertion_traits.hxx>
#include <unotools/fltrcfg.hxx>
...
...
@@ -2208,15 +2209,15 @@ DECLARE_OOXMLIMPORT_TEST(testMsoBrightnessContrast, "msobrightnesscontrast.docx"
uno
::
Reference
<
graphic
::
XGraphic
>
graphic
;
imageProperties
->
getPropertyValue
(
"Graphic"
)
>>=
graphic
;
uno
::
Reference
<
awt
::
XBitmap
>
bitmap
(
graphic
,
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
58
),
bitmap
->
getSize
().
Width
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
320
),
bitmap
->
getSize
().
Height
);
const
uno
::
Sequence
<
sal_Int8
>
data
=
bitmap
->
getDIB
();
// as .bmp data
CPPUNIT_ASSERT
_EQUAL
(
sal_Int32
(
56374
),
data
.
getLength
()
);
CPPUNIT_ASSERT_EQUAL
(
-
50
,
int
(
data
[
0x6e0
]));
// -50 = 206 pixel value
CPPUNIT_ASSERT_EQUAL
(
-
50
,
int
(
data
[
0x6e1
]
));
C
PPUNIT_ASSERT_EQUAL
(
-
50
,
int
(
data
[
0x6e2
]
));
CPPUNIT_ASSERT_EQUAL
(
-
50
,
int
(
data
[
0x6e3
]
));
CPPUNIT_ASSERT_EQUAL
(
-
50
,
int
(
data
[
0x6e4
])
);
Graphic
aVclGraphic
(
graphic
);
Bitmap
aBitmap
(
aVclGraphic
.
GetBitmap
()
);
BitmapReadAccess
*
pAccess
=
aBitmap
.
AcquireReadAccess
();
CPPUNIT_ASSERT
(
pAccess
);
CPPUNIT_ASSERT_EQUAL
(
58L
,
pAccess
->
Width
());
CPPUNIT_ASSERT_EQUAL
(
320L
,
pAccess
->
Height
(
));
C
olor
aColor
(
pAccess
->
GetPixel
(
30
,
20
));
CPPUNIT_ASSERT_EQUAL
(
aColor
.
GetColor
(),
RGB_COLORDATA
(
0xce
,
0xce
,
0xce
));
aBitmap
.
ReleaseAccess
(
pAccess
);
}
DECLARE_OOXMLIMPORT_TEST
(
testChartSize
,
"chart-size.docx"
)
...
...
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