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
ddb4600c
Kaydet (Commit)
ddb4600c
authored
Eki 28, 2016
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sd: fix loplugin:cppunitassertequals warnings
Change-Id: Id2dc5762668b7c3f78f0a0a1ede97d4ac63fab5d
üst
807151aa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
export-tests-ooxml1.cxx
sd/qa/unit/export-tests-ooxml1.cxx
+3
-3
export-tests.cxx
sd/qa/unit/export-tests.cxx
+3
-3
import-tests.cxx
sd/qa/unit/import-tests.cxx
+1
-1
tiledrendering.cxx
sd/qa/unit/tiledrendering/tiledrendering.cxx
+2
-2
No files found.
sd/qa/unit/export-tests-ooxml1.cxx
Dosyayı görüntüle @
ddb4600c
...
@@ -259,16 +259,16 @@ void SdOOXMLExportTest1::testN828390_4()
...
@@ -259,16 +259,16 @@ void SdOOXMLExportTest1::testN828390_4()
{
{
const
SvxFontHeightItem
*
pFontHeight
=
dynamic_cast
<
const
SvxFontHeightItem
*>
((
*
it
).
pAttr
);
const
SvxFontHeightItem
*
pFontHeight
=
dynamic_cast
<
const
SvxFontHeightItem
*>
((
*
it
).
pAttr
);
if
(
pFontHeight
)
if
(
pFontHeight
)
CPPUNIT_ASSERT_
MESSAGE
(
"Font height is wrong"
,
pFontHeight
->
GetHeight
()
==
1129
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
"Font height is wrong"
,
static_cast
<
sal_uInt32
>
(
1129
),
pFontHeight
->
GetHeight
()
);
const
SvxFontItem
*
pFont
=
dynamic_cast
<
const
SvxFontItem
*>
((
*
it
).
pAttr
);
const
SvxFontItem
*
pFont
=
dynamic_cast
<
const
SvxFontItem
*>
((
*
it
).
pAttr
);
if
(
pFont
)
if
(
pFont
)
{
{
CPPUNIT_ASSERT_
MESSAGE
(
"Font is wrong"
,
pFont
->
GetFamilyName
()
==
"Arial"
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
"Font is wrong"
,
OUString
(
"Arial"
),
pFont
->
GetFamilyName
()
);
bPassed
=
true
;
bPassed
=
true
;
}
}
const
SvxWeightItem
*
pWeight
=
dynamic_cast
<
const
SvxWeightItem
*>
((
*
it
).
pAttr
);
const
SvxWeightItem
*
pWeight
=
dynamic_cast
<
const
SvxWeightItem
*>
((
*
it
).
pAttr
);
if
(
pWeight
)
if
(
pWeight
)
CPPUNIT_ASSERT_
MESSAGE
(
"Font Weight is wrong"
,
pWeight
->
GetWeight
()
==
WEIGHT_BOLD
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
"Font Weight is wrong"
,
WEIGHT_BOLD
,
pWeight
->
GetWeight
()
);
}
}
}
}
CPPUNIT_ASSERT
(
bPassed
);
CPPUNIT_ASSERT
(
bPassed
);
...
...
sd/qa/unit/export-tests.cxx
Dosyayı görüntüle @
ddb4600c
...
@@ -144,7 +144,7 @@ void SdExportTest::testN821567()
...
@@ -144,7 +144,7 @@ void SdExportTest::testN821567()
xDocShRef
=
saveAndReload
(
xDocShRef
.
get
(),
ODP
);
xDocShRef
=
saveAndReload
(
xDocShRef
.
get
(),
ODP
);
uno
::
Reference
<
drawing
::
XDrawPagesSupplier
>
xDoc
(
uno
::
Reference
<
drawing
::
XDrawPagesSupplier
>
xDoc
(
xDocShRef
->
GetDoc
()
->
getUnoModel
(),
uno
::
UNO_QUERY_THROW
);
xDocShRef
->
GetDoc
()
->
getUnoModel
(),
uno
::
UNO_QUERY_THROW
);
CPPUNIT_ASSERT_
MESSAGE
(
"not exactly one page"
,
xDoc
->
getDrawPages
()
->
getCount
()
==
1
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
"not exactly one page"
,
static_cast
<
sal_Int32
>
(
1
),
xDoc
->
getDrawPages
()
->
getCount
()
);
uno
::
Reference
<
drawing
::
XDrawPage
>
xPage
(
getPage
(
0
,
xDocShRef
)
);
uno
::
Reference
<
drawing
::
XDrawPage
>
xPage
(
getPage
(
0
,
xDocShRef
)
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xPage
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropSet
(
xPage
,
uno
::
UNO_QUERY
);
...
@@ -281,7 +281,7 @@ void SdExportTest::testSwappedOutImageExport()
...
@@ -281,7 +281,7 @@ void SdExportTest::testSwappedOutImageExport()
// Check whether graphic exported well after it was swapped out
// Check whether graphic exported well after it was swapped out
uno
::
Reference
<
drawing
::
XDrawPagesSupplier
>
xDrawPagesSupplier
(
xDocShRef
->
GetModel
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XDrawPagesSupplier
>
xDrawPagesSupplier
(
xDocShRef
->
GetModel
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_
MESSAGE
(
sFailedMessage
.
getStr
(),
xDrawPagesSupplier
->
getDrawPages
()
->
getCount
()
==
2
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
sFailedMessage
.
getStr
(),
static_cast
<
sal_Int32
>
(
2
),
xDrawPagesSupplier
->
getDrawPages
()
->
getCount
()
);
uno
::
Reference
<
drawing
::
XDrawPage
>
xDrawPage
(
xDrawPagesSupplier
->
getDrawPages
()
->
getByIndex
(
0
),
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
drawing
::
XDrawPage
>
xDrawPage
(
xDrawPagesSupplier
->
getDrawPages
()
->
getByIndex
(
0
),
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
drawing
::
XShape
>
xImage
(
xDrawPage
->
getByIndex
(
2
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XShape
>
xImage
(
xDrawPage
->
getByIndex
(
2
),
uno
::
UNO_QUERY
);
...
@@ -449,7 +449,7 @@ void SdExportTest::testImageWithSpecialID()
...
@@ -449,7 +449,7 @@ void SdExportTest::testImageWithSpecialID()
// Check whether graphic was exported well
// Check whether graphic was exported well
uno
::
Reference
<
drawing
::
XDrawPagesSupplier
>
xDrawPagesSupplier
(
xDocShRef
->
GetModel
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XDrawPagesSupplier
>
xDrawPagesSupplier
(
xDocShRef
->
GetModel
(),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_
MESSAGE
(
sFailedMessage
.
getStr
(),
xDrawPagesSupplier
->
getDrawPages
()
->
getCount
()
==
2
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
sFailedMessage
.
getStr
(),
static_cast
<
sal_Int32
>
(
2
),
xDrawPagesSupplier
->
getDrawPages
()
->
getCount
()
);
uno
::
Reference
<
drawing
::
XDrawPage
>
xDrawPage
(
xDrawPagesSupplier
->
getDrawPages
()
->
getByIndex
(
0
),
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
drawing
::
XDrawPage
>
xDrawPage
(
xDrawPagesSupplier
->
getDrawPages
()
->
getByIndex
(
0
),
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
drawing
::
XShape
>
xImage
(
xDrawPage
->
getByIndex
(
2
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XShape
>
xImage
(
xDrawPage
->
getByIndex
(
2
),
uno
::
UNO_QUERY
);
...
...
sd/qa/unit/import-tests.cxx
Dosyayı görüntüle @
ddb4600c
...
@@ -1389,7 +1389,7 @@ void SdImportTest::testTdf99729()
...
@@ -1389,7 +1389,7 @@ void SdImportTest::testTdf99729()
// If text alignment is wrong, the rectangle will be white.
// If text alignment is wrong, the rectangle will be white.
CPPUNIT_ASSERT_MESSAGE
(
"Tdf99729: vertical alignment of text is incorrect!"
,
nonwhitecounts
[
0
]
>
100
);
// it is 134 with cleartype disabled
CPPUNIT_ASSERT_MESSAGE
(
"Tdf99729: vertical alignment of text is incorrect!"
,
nonwhitecounts
[
0
]
>
100
);
// it is 134 with cleartype disabled
// The numbers 1-9 should be below the Text Box -> rectangle 154,16 - 170,112 should be white.
// The numbers 1-9 should be below the Text Box -> rectangle 154,16 - 170,112 should be white.
CPPUNIT_ASSERT_
MESSAGE
(
"Tdf99729: legacy vertical alignment of text is incorrect!"
,
nonwhitecounts
[
1
]
==
0
);
CPPUNIT_ASSERT_
EQUAL_MESSAGE
(
"Tdf99729: legacy vertical alignment of text is incorrect!"
,
0
,
nonwhitecounts
[
1
]
);
}
}
void
SdImportTest
::
testTdf89927
()
void
SdImportTest
::
testTdf89927
()
...
...
sd/qa/unit/tiledrendering/tiledrendering.cxx
Dosyayı görüntüle @
ddb4600c
...
@@ -648,7 +648,7 @@ void SdTiledRenderingTest::testInsertDeletePage()
...
@@ -648,7 +648,7 @@ void SdTiledRenderingTest::testInsertDeletePage()
};
};
// the document has 1 slide
// the document has 1 slide
CPPUNIT_ASSERT
(
pDoc
->
GetSdPageCount
(
PageKind
::
Standard
)
==
1
);
CPPUNIT_ASSERT
_EQUAL
(
static_cast
<
sal_uInt16
>
(
1
),
pDoc
->
GetSdPageCount
(
PageKind
::
Standard
)
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aArgs
;
uno
::
Sequence
<
beans
::
PropertyValue
>
aArgs
;
...
@@ -719,7 +719,7 @@ void SdTiledRenderingTest::testInsertDeletePage()
...
@@ -719,7 +719,7 @@ void SdTiledRenderingTest::testInsertDeletePage()
}
}
// the document has 1 slide
// the document has 1 slide
CPPUNIT_ASSERT
(
pDoc
->
GetSdPageCount
(
PageKind
::
Standard
)
==
1
);
CPPUNIT_ASSERT
_EQUAL
(
static_cast
<
sal_uInt16
>
(
1
),
pDoc
->
GetSdPageCount
(
PageKind
::
Standard
)
);
comphelper
::
LibreOfficeKit
::
setActive
(
false
);
comphelper
::
LibreOfficeKit
::
setActive
(
false
);
}
}
...
...
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