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
186b96dc
Kaydet (Commit)
186b96dc
authored
Mar 28, 2014
tarafından
Muthu Subramanian
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add unit test for text gradfill import.
Change-Id: I803238fd21d1c73aae8146966a5e62e62ad48c5c
üst
cfc76de8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
n862510_4.pptx
sd/qa/unit/data/pptx/n862510_4.pptx
+0
-0
import-tests.cxx
sd/qa/unit/import-tests.cxx
+27
-0
No files found.
sd/qa/unit/data/pptx/n862510_4.pptx
0 → 100644
Dosyayı görüntüle @
186b96dc
File added
sd/qa/unit/import-tests.cxx
Dosyayı görüntüle @
186b96dc
...
@@ -66,6 +66,7 @@ public:
...
@@ -66,6 +66,7 @@ public:
void
testN862510_1
();
void
testN862510_1
();
void
testN862510_2
();
void
testN862510_2
();
void
testN862510_3
();
void
testN862510_3
();
void
testN862510_4
();
void
testFdo71961
();
void
testFdo71961
();
CPPUNIT_TEST_SUITE
(
SdFiltersTest
);
CPPUNIT_TEST_SUITE
(
SdFiltersTest
);
...
@@ -87,6 +88,7 @@ public:
...
@@ -87,6 +88,7 @@ public:
CPPUNIT_TEST
(
testN862510_1
);
CPPUNIT_TEST
(
testN862510_1
);
CPPUNIT_TEST
(
testN862510_2
);
CPPUNIT_TEST
(
testN862510_2
);
CPPUNIT_TEST
(
testN862510_3
);
CPPUNIT_TEST
(
testN862510_3
);
CPPUNIT_TEST
(
testN862510_4
);
CPPUNIT_TEST
(
testFdo71961
);
CPPUNIT_TEST
(
testFdo71961
);
CPPUNIT_TEST_SUITE_END
();
CPPUNIT_TEST_SUITE_END
();
...
@@ -308,6 +310,31 @@ void SdFiltersTest::testN862510_3()
...
@@ -308,6 +310,31 @@ void SdFiltersTest::testN862510_3()
}
}
}
}
void
SdFiltersTest
::
testN862510_4
()
{
::
sd
::
DrawDocShellRef
xDocShRef
=
loadURL
(
getURLFromSrc
(
"/sd/qa/unit/data/pptx/n862510_4.pptx"
)
);
CPPUNIT_ASSERT_MESSAGE
(
"failed to load"
,
xDocShRef
.
Is
()
);
CPPUNIT_ASSERT_MESSAGE
(
"in destruction"
,
!
xDocShRef
->
IsInDestruction
()
);
SdDrawDocument
*
pDoc
=
xDocShRef
->
GetDoc
();
CPPUNIT_ASSERT_MESSAGE
(
"no document"
,
pDoc
!=
NULL
);
const
SdrPage
*
pPage
=
pDoc
->
GetPage
(
1
);
CPPUNIT_ASSERT_MESSAGE
(
"no page"
,
pPage
!=
NULL
);
{
std
::
vector
<
EECharAttrib
>
rLst
;
SdrObject
*
pObj
=
pPage
->
GetObj
(
0
);
SdrTextObj
*
pTxtObj
=
dynamic_cast
<
SdrTextObj
*>
(
pObj
);
CPPUNIT_ASSERT
(
pTxtObj
);
const
EditTextObject
&
aEdit
=
pTxtObj
->
GetOutlinerParaObject
()
->
GetTextObject
();
aEdit
.
GetCharAttribs
(
0
,
rLst
);
for
(
std
::
vector
<
EECharAttrib
>::
reverse_iterator
it
=
rLst
.
rbegin
();
it
!=
rLst
.
rend
();
++
it
)
{
const
SvxColorItem
*
pC
=
dynamic_cast
<
const
SvxColorItem
*>
(
(
*
it
).
pAttr
);
CPPUNIT_ASSERT_MESSAGE
(
"gradfill for text color not handled!"
,
!
(
pC
&&
pC
->
GetValue
().
GetColor
()
==
0
)
);
}
}
}
void
SdFiltersTest
::
testN828390
()
void
SdFiltersTest
::
testN828390
()
{
{
bool
bPassed
=
false
;
bool
bPassed
=
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