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
5a23dee0
Kaydet (Commit)
5a23dee0
authored
Ara 03, 2013
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw unit tests: Introduce hasProperty(), make the redlining check more elegant.
Change-Id: I123bdfd7f21b78cbee6db2ceb9b98c2e473415d1
üst
fb51e1cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
swmodeltestbase.hxx
sw/qa/extras/inc/swmodeltestbase.hxx
+6
-0
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+1
-8
No files found.
sw/qa/extras/inc/swmodeltestbase.hxx
Dosyayı görüntüle @
5a23dee0
...
...
@@ -300,6 +300,12 @@ protected:
return
data
;
}
bool
hasProperty
(
const
uno
::
Reference
<
uno
::
XInterface
>&
obj
,
const
OUString
&
name
)
const
{
uno
::
Reference
<
beans
::
XPropertySet
>
properties
(
obj
,
uno
::
UNO_QUERY_THROW
);
return
properties
->
getPropertySetInfo
()
->
hasPropertyByName
(
name
);
}
/// Get number of paragraphs of the document.
int
getParagraphs
()
{
...
...
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
5a23dee0
...
...
@@ -1175,14 +1175,7 @@ DECLARE_OOXMLEXPORT_TEST(testBnc837302, "bnc837302.docx")
// make sure we don't introduce a redlined delete in the 2nd paragraph
xParagraph
=
getParagraph
(
2
);
OUString
aProperty
;
try
{
// throws when not present
aProperty
=
getProperty
<
OUString
>
(
getRun
(
xParagraph
,
1
),
"RedlineType"
);
}
catch
(
const
beans
::
UnknownPropertyException
&
)
{}
CPPUNIT_ASSERT_EQUAL
(
OUString
(),
aProperty
);
CPPUNIT_ASSERT_EQUAL
(
false
,
hasProperty
(
getRun
(
xParagraph
,
1
),
"RedlineType"
));
}
DECLARE_OOXMLEXPORT_TEST
(
testFdo68418
,
"fdo68418.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