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
7b515a57
Kaydet (Commit)
7b515a57
authored
Nis 08, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test RTF_BKMKSTART and RTF_BKMKEND
Change-Id: I00b258ef3ed89db3b9b8c97bea5ad6673b006398
üst
fc9a9166
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
bookmark.rtf
sw/qa/extras/rtfexport/data/bookmark.rtf
+7
-0
rtfexport.cxx
sw/qa/extras/rtfexport/rtfexport.cxx
+9
-0
No files found.
sw/qa/extras/rtfexport/data/bookmark.rtf
0 → 100644
Dosyayı görüntüle @
7b515a57
{\rtf1
{\*\bkmkstart firstword}
Hello
{\*\bkmkend firstword}
world!
\par
}
sw/qa/extras/rtfexport/rtfexport.cxx
Dosyayı görüntüle @
7b515a57
...
...
@@ -75,6 +75,7 @@ public:
void
testPlaceholder
();
void
testMnor
();
void
testI120928
();
void
testBookmark
();
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
...
...
@@ -124,6 +125,7 @@ void Test::run()
{
"placeholder.odt"
,
&
Test
::
testPlaceholder
},
{
"mnor.rtf"
,
&
Test
::
testMnor
},
{
"i120928.rtf"
,
&
Test
::
testI120928
},
{
"bookmark.rtf"
,
&
Test
::
testBookmark
},
};
// Don't test the first import of these, for some reason those tests fail
const
char
*
aBlacklist
[]
=
{
...
...
@@ -539,6 +541,13 @@ void Test::testI120928()
CPPUNIT_ASSERT_EQUAL
(
true
,
bIsGraphic
);
}
void
Test
::
testBookmark
()
{
uno
::
Reference
<
text
::
XBookmarksSupplier
>
xBookmarksSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
text
::
XTextContent
>
xBookmark
(
xBookmarksSupplier
->
getBookmarks
()
->
getByName
(
"firstword"
),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Hello"
),
xBookmark
->
getAnchor
()
->
getString
());
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
...
...
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