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
04ab7b8e
Kaydet (Commit)
04ab7b8e
authored
May 16, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: fix indentation in rtf{export,import} test
Change-Id: Ie777de47dc70da136b145028a08ea17a0de7a87d
üst
17ed8c53
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
rtfexport.cxx
sw/qa/extras/rtfexport/rtfexport.cxx
+6
-4
rtfimport.cxx
sw/qa/extras/rtfimport/rtfimport.cxx
+0
-0
No files found.
sw/qa/extras/rtfexport/rtfexport.cxx
Dosyayı görüntüle @
04ab7b8e
...
...
@@ -30,9 +30,11 @@ class Test : public SwModelTestBase
public
:
Test
()
:
SwModelTestBase
(
"/sw/qa/extras/rtfexport/data/"
,
"Rich Text Format"
)
{}
bool
mustTestImportOf
(
const
char
*
filename
)
const
SAL_OVERRIDE
{
bool
mustTestImportOf
(
const
char
*
filename
)
const
SAL_OVERRIDE
{
// Don't test the first import of these, for some reason those tests fail
const
char
*
aBlacklist
[]
=
{
const
char
*
aBlacklist
[]
=
{
"math-eqarray.rtf"
,
"math-escaping.rtf"
,
"math-lim.rtf"
,
...
...
@@ -230,7 +232,7 @@ DECLARE_RTFEXPORT_TEST(testMathMso2007, "math-mso2007.rtf")
aActual
=
getFormula
(
getRun
(
getParagraph
(
4
),
1
));
aExpected
=
OUString
(
"f left (x right ) = {a} rsub {0} + sum from {n = 1} to {
\xe2\x88\x9e
} {left ({a} rsub {n} cos {n
\xcf\x80
x} over {L} + {b} rsub {n} sin {n
\xcf\x80
x} over {L} right )}"
,
144
,
RTL_TEXTENCODING_UTF8
);
RTL_TEXTENCODING_UTF8
);
CPPUNIT_ASSERT_EQUAL
(
aExpected
,
aActual
);
aActual
=
getFormula
(
getRun
(
getParagraph
(
5
),
1
));
...
...
@@ -355,7 +357,7 @@ DECLARE_RTFEXPORT_TEST(testFdo55939, "fdo55939.odt")
getRun
(
xParagraph
,
1
,
"Main text before footnote."
);
// Why the tab has to be removed here?
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"Footnote text."
),
getProperty
<
uno
::
Reference
<
text
::
XTextRange
>
>
(
getRun
(
xParagraph
,
2
),
"Footnote"
)
->
getText
()
->
getString
().
replaceAll
(
"
\t
"
,
""
));
getProperty
<
uno
::
Reference
<
text
::
XTextRange
>
>
(
getRun
(
xParagraph
,
2
),
"Footnote"
)
->
getText
()
->
getString
().
replaceAll
(
"
\t
"
,
""
));
getRun
(
xParagraph
,
3
,
" Text after the footnote."
);
// However, this leading space is intentional and OK.
}
...
...
sw/qa/extras/rtfimport/rtfimport.cxx
Dosyayı görüntüle @
04ab7b8e
This diff is collapsed.
Click to expand it.
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