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
85c8252e
Kaydet (Commit)
85c8252e
authored
Nis 08, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test RtfAttributeOutput::StartURL()
Change-Id: I66f527ff7463852f65e1a3f02ddcea60d329147a
üst
5c0f6c6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
hyperlink.rtf
sw/qa/extras/rtfexport/data/hyperlink.rtf
+9
-0
rtfexport.cxx
sw/qa/extras/rtfexport/rtfexport.cxx
+9
-0
No files found.
sw/qa/extras/rtfexport/data/hyperlink.rtf
0 → 100644
Dosyayı görüntüle @
85c8252e
{\rtf1
Hello
{\field
{\*\fldinst HYPERLINK "http://en.wikipedia.org/wiki/World" }
{\fldrslt world}
}
!}
\par
}
sw/qa/extras/rtfexport/rtfexport.cxx
Dosyayı görüntüle @
85c8252e
...
@@ -76,6 +76,7 @@ public:
...
@@ -76,6 +76,7 @@ public:
void
testMnor
();
void
testMnor
();
void
testI120928
();
void
testI120928
();
void
testBookmark
();
void
testBookmark
();
void
testHyperlink
();
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
#if !defined(MACOSX) && !defined(WNT)
...
@@ -126,6 +127,7 @@ void Test::run()
...
@@ -126,6 +127,7 @@ void Test::run()
{
"mnor.rtf"
,
&
Test
::
testMnor
},
{
"mnor.rtf"
,
&
Test
::
testMnor
},
{
"i120928.rtf"
,
&
Test
::
testI120928
},
{
"i120928.rtf"
,
&
Test
::
testI120928
},
{
"bookmark.rtf"
,
&
Test
::
testBookmark
},
{
"bookmark.rtf"
,
&
Test
::
testBookmark
},
{
"hyperlink.rtf"
,
&
Test
::
testHyperlink
},
};
};
// Don't test the first import of these, for some reason those tests fail
// Don't test the first import of these, for some reason those tests fail
const
char
*
aBlacklist
[]
=
{
const
char
*
aBlacklist
[]
=
{
...
@@ -548,6 +550,13 @@ void Test::testBookmark()
...
@@ -548,6 +550,13 @@ void Test::testBookmark()
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Hello"
),
xBookmark
->
getAnchor
()
->
getString
());
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Hello"
),
xBookmark
->
getAnchor
()
->
getString
());
}
}
void
Test
::
testHyperlink
()
{
CPPUNIT_ASSERT_EQUAL
(
OUString
(
""
),
getProperty
<
OUString
>
(
getRun
(
getParagraph
(
1
),
1
,
"Hello"
),
"HyperLinkURL"
));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"http://en.wikipedia.org/wiki/World"
),
getProperty
<
OUString
>
(
getRun
(
getParagraph
(
1
),
2
,
"world"
),
"HyperLinkURL"
));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
""
),
getProperty
<
OUString
>
(
getRun
(
getParagraph
(
1
),
3
,
"!"
),
"HyperLinkURL"
));
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
Test
);
CPPUNIT_PLUGIN_IMPLEMENT
();
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