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
8182f7d3
Kaydet (Commit)
8182f7d3
authored
Tem 27, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
test RTF_M{NARY,LIMUPP,STRIKEH}
Change-Id: I612fbc2064dead58786fbe77597ca677f6703eb7
üst
06b9b214
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
221 additions
and
0 deletions
+221
-0
math-limupp.rtf
sw/qa/extras/rtfexport/data/math-limupp.rtf
+77
-0
math-nary.rtf
sw/qa/extras/rtfexport/data/math-nary.rtf
+87
-0
math-strikeh.rtf
sw/qa/extras/rtfexport/data/math-strikeh.rtf
+26
-0
rtfexport.cxx
sw/qa/extras/rtfexport/rtfexport.cxx
+31
-0
No files found.
sw/qa/extras/rtfexport/data/math-limupp.rtf
0 → 100644
Dosyayı görüntüle @
8182f7d3
{\rtf1
{\mmath
{\*\moMathPara
{\*\moMath
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid7036055 }
{\mlimUpp
{\mlimUppPr
{\mctrlPr\f34 }
}
{\me
{\rtlch\fcs1 \af1 \ltrch\fcs0
\f34\insrsid7036055 }
{\mgroupChr
{\mgroupChrPr
{\mchr \u9182 ?}
{\mpos top}
{\mvertJc bot}
{\mctrlPr\f34 }
}
{\me
{\rtlch\fcs1 \af1 \ltrch\fcs0 \i\f34\insrsid7036055 \hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 abcd}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0
\f34\insrsid7036055 }
}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid7036055 }
}
{\mlim
{\rtlch\fcs1 \af1 \ltrch\fcs0 \i\f34\insrsid7036055 \hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 4}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid7036055 }
}
}
}
}
}
\par
{\mmath
{\*\moMathPara
{\*\moMath
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid7036055 }
{\mlimLow
{\mlimLowPr
{\mctrlPr\f34 }
}
{\me
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid7036055 }
{\mgroupChr
{\mgroupChrPr
{\mctrlPr\f34 }
}
{\me
{\rtlch\fcs1 \af1 \ltrch\fcs0
\i\f34\insrsid7036055 \hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 xyz}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid7036055 }
}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid7036055 }
}
{\mlim
{\rtlch\fcs1 \af1 \ltrch\fcs0 \i\f34\insrsid7036055
\hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 3}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid7036055 }
}
}
}
}
}
\par
}
sw/qa/extras/rtfexport/data/math-nary.rtf
0 → 100644
Dosyayı görüntüle @
8182f7d3
{\rtf1
{\mmath
{\*\moMathPara
{\*\moMath
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
{\mnary
{\mnaryPr
{\mchr \u8752 ?}
{\mctrlPr\f34 }
}
{\msub
{\rtlch\fcs1 \af1
\ltrch\fcs0 \i\f34\insrsid8470899 \hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 1}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
}
{\msup
{\rtlch\fcs1 \af1 \ltrch\fcs0 \i\f34\insrsid8470899 \hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 2}
}
{
\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
}
{\me
{\rtlch\fcs1 \af1 \ltrch\fcs0 \i\f34\insrsid8470899 \hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 x}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \i\f34\insrsid8470899 \hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 +1}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
{\mnary
{\mnaryPr
{\mchr \u8719 ?}
{\msupHide on}
{\mctrlPr\f34 }
}
{\msub
{\rtlch\fcs1 \af1 \ltrch\fcs0 \i\f34\insrsid8470899
\hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 a}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
}
{\msup
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
}
{\me
{\rtlch\fcs1 \af1 \ltrch\fcs0 \i\f34\insrsid8470899 \hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 b}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
{\mnary
{\mnaryPr
{\mchr \u8721 ?}
{\msubHide on}
{\mctrlPr\f34 }
}
{\msub
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
}
{\msup
{
\rtlch\fcs1 \af1 \ltrch\fcs0 \i\f34\insrsid8470899 \hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 2}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
}
{\me
{\rtlch\fcs1 \af1 \ltrch\fcs0 \i\f34\insrsid8470899 \hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 x}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid8470899 }
}
}
}
}
}
\par
}
sw/qa/extras/rtfexport/data/math-strikeh.rtf
0 → 100644
Dosyayı görüntüle @
8182f7d3
{\rtf1
{\mmath
{\*\moMathPara
{\*\moMath
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid15277751 }
{\mborderBox
{\mborderBoxPr
{\mhideTop on}
{\mhideBot on}
{\mhideLeft on}
{\mhideRight on}
{\mstrikeH on}
{\mctrlPr\f34 }
}
{\me
{\rtlch\fcs1 \af1 \ltrch\fcs0 \i\f34\insrsid15277751 \hich\af34\dbch\af42\loch\f34
{\mr\mscr0\msty2 abc}
}
{\rtlch\fcs1 \af1 \ltrch\fcs0 \f34\insrsid15277751 }
}
}
}
}
}
\par
}
sw/qa/extras/rtfexport/rtfexport.cxx
Dosyayı görüntüle @
8182f7d3
...
...
@@ -59,6 +59,9 @@ public:
void
testMathMatrix
();
void
testMathBox
();
void
testMathMso2007
();
void
testMathNary
();
void
testMathLimupp
();
void
testMathStrikeh
();
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
...
...
@@ -80,6 +83,9 @@ public:
CPPUNIT_TEST
(
testMathMatrix
);
CPPUNIT_TEST
(
testMathBox
);
CPPUNIT_TEST
(
testMathMso2007
);
CPPUNIT_TEST
(
testMathNary
);
CPPUNIT_TEST
(
testMathLimupp
);
CPPUNIT_TEST
(
testMathStrikeh
);
#endif
#endif
CPPUNIT_TEST_SUITE_END
();
...
...
@@ -318,6 +324,31 @@ void Test::testMathMso2007()
CPPUNIT_ASSERT_EQUAL
(
aExpected
,
aActual
);
}
void
Test
::
testMathNary
()
{
roundtrip
(
"math-nary.rtf"
);
OUString
aActual
=
getFormula
(
getRun
(
getParagraph
(
1
),
1
));
OUString
aExpected
(
"lllint from {1} to {2} {x + 1} prod from {a} {b} sum to {2} {x}"
);
CPPUNIT_ASSERT_EQUAL
(
aExpected
,
aActual
);
}
void
Test
::
testMathLimupp
()
{
roundtrip
(
"math-limupp.rtf"
);
OUString
aActual
=
getFormula
(
getRun
(
getParagraph
(
1
),
1
));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"{abcd} overbrace {4}"
),
aActual
);
aActual
=
getFormula
(
getRun
(
getParagraph
(
2
),
1
));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"{xyz} underbrace {3}"
),
aActual
);
}
void
Test
::
testMathStrikeh
()
{
roundtrip
(
"math-strikeh.rtf"
);
OUString
aActual
=
getFormula
(
getRun
(
getParagraph
(
1
),
1
));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"overstrike {abc}"
),
aActual
);
}
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