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
8e285728
Kaydet (Commit)
8e285728
authored
Şub 18, 2014
tarafından
Zolnai Tamás
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ooxml unit tests: merge two tests
Change-Id: Ie37ec829ddeeaeb8882c1a566cc80419edcfa170
üst
c9b1fd63
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
29 deletions
+5
-29
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+5
-6
dml-shape-fillbitmapcrop.docx
sw/qa/extras/ooxmlimport/data/dml-shape-fillbitmapcrop.docx
+0
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+0
-23
No files found.
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
8e285728
...
...
@@ -110,8 +110,7 @@ protected:
"math-mso2k7.docx"
,
"ImageCrop.docx"
,
"test_GIF_ImageCrop.docx"
,
"test_PNG_ImageCrop.docx"
,
"dml-shape-fillbitmapcrop.docx"
"test_PNG_ImageCrop.docx"
};
std
::
vector
<
const
char
*>
vBlacklist
(
aBlacklist
,
aBlacklist
+
SAL_N_ELEMENTS
(
aBlacklist
));
...
...
@@ -2991,10 +2990,10 @@ DECLARE_OOXMLEXPORT_TEST(testDMLShapeFillBitmapCrop, "dml-shape-fillbitmapcrop.d
// 1st shape has some cropping
text
::
GraphicCrop
aGraphicCropStruct
=
getProperty
<
text
::
GraphicCrop
>
(
getShape
(
1
),
"GraphicCrop"
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
454
),
aGraphicCropStruct
.
Left
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
367
),
aGraphicCropStruct
.
Right
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
-
454
),
aGraphicCropStruct
.
Top
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
-
367
),
aGraphicCropStruct
.
Bottom
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
m_bExported
?
454
:
455
),
aGraphicCropStruct
.
Left
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
m_bExported
?
367
:
368
),
aGraphicCropStruct
.
Right
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
m_bExported
?
-
454
:
-
455
),
aGraphicCropStruct
.
Top
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
m_bExported
?
-
367
:
-
368
),
aGraphicCropStruct
.
Bottom
);
// 2nd shape has no cropping
aGraphicCropStruct
=
getProperty
<
text
::
GraphicCrop
>
(
getShape
(
2
),
"GraphicCrop"
);
...
...
sw/qa/extras/ooxmlimport/data/dml-shape-fillbitmapcrop.docx
deleted
100644 → 0
Dosyayı görüntüle @
c9b1fd63
File deleted
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
8e285728
...
...
@@ -1817,29 +1817,6 @@ DECLARE_OOXMLIMPORT_TEST(testDMLGroupShapeParaAdjust, "dml-groupshape-paraadjust
CPPUNIT_ASSERT_EQUAL
(
sal_Int16
(
style
::
ParagraphAdjust_LEFT
),
getProperty
<
sal_Int16
>
(
getRun
(
getParagraphOfText
(
7
,
xText
),
1
),
"ParaAdjust"
));
}
DECLARE_OOXMLIMPORT_TEST
(
testDMLShapeFillBitmapCrop
,
"dml-shape-fillbitmapcrop.docx"
)
{
// The same test can be found in ooxmlexport, but some rouding made on crop values so we can't test import and
// export with the same values.
// 1st shape has some cropping
text
::
GraphicCrop
aGraphicCropStruct
=
getProperty
<
text
::
GraphicCrop
>
(
getShape
(
1
),
"GraphicCrop"
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
455
),
aGraphicCropStruct
.
Left
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
368
),
aGraphicCropStruct
.
Right
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
-
455
),
aGraphicCropStruct
.
Top
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
-
368
),
aGraphicCropStruct
.
Bottom
);
// 2nd shape has no cropping
aGraphicCropStruct
=
getProperty
<
text
::
GraphicCrop
>
(
getShape
(
2
),
"GraphicCrop"
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
aGraphicCropStruct
.
Left
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
aGraphicCropStruct
.
Right
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
aGraphicCropStruct
.
Top
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
0
),
aGraphicCropStruct
.
Bottom
);
}
DECLARE_OOXMLIMPORT_TEST
(
testPictureWithSchemeColor
,
"picture-with-schemecolor.docx"
)
{
// At the start of the document, a picture which has a color specified with a color scheme, lost
...
...
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