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
3fa5ac20
Kaydet (Commit)
3fa5ac20
authored
May 11, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: tdf#66353 make a basic regression test for formula parser
Change-Id: I7f79aff38899fd814d707b40f3fd77b2c87b1328
üst
36c2e811
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
uwriter.cxx
sw/qa/core/uwriter.cxx
+38
-0
No files found.
sw/qa/core/uwriter.cxx
Dosyayı görüntüle @
3fa5ac20
...
...
@@ -36,6 +36,7 @@
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentFieldsAccess.hxx>
#include <IDocumentStatistics.hxx>
#include "cellfml.hxx"
#include "docsh.hxx"
#include "docstat.hxx"
#include "docufld.hxx"
...
...
@@ -105,6 +106,7 @@ public:
void
testGraphicAnchorDeletion
();
void
testTransliterate
();
void
testMarkMove
();
void
testFormulas
();
void
testIntrusiveRing
();
void
testClientModify
();
...
...
@@ -136,6 +138,7 @@ public:
CPPUNIT_TEST
(
testMergePortionsDeleteNotSorted
);
CPPUNIT_TEST
(
testGraphicAnchorDeletion
);
CPPUNIT_TEST
(
testMarkMove
);
CPPUNIT_TEST
(
testFormulas
);
CPPUNIT_TEST
(
testIntrusiveRing
);
CPPUNIT_TEST
(
testClientModify
);
CPPUNIT_TEST_SUITE_END
();
...
...
@@ -1173,6 +1176,41 @@ void SwDocTest::testTransliterate()
i18n
::
TransliterationModules_HIRAGANA_KATAKANA
));
}
namespace
{
class
SwTableFormulaTest
:
public
SwTableFormula
{
SwTableNode
*
m_pNode
;
public
:
SwTableFormulaTest
(
const
OUString
&
rStr
,
SwTableNode
*
pNode
)
:
SwTableFormula
(
rStr
)
,
m_pNode
(
pNode
)
{
m_eNmType
=
INTRNL_NAME
;
}
virtual
const
SwNode
*
GetNodeOfFormula
()
const
SAL_OVERRIDE
{
return
m_pNode
;
}
};
}
//tdf#66353 Expression is faulty
void
SwDocTest
::
testFormulas
()
{
SwNodeIndex
aIdx
(
m_pDoc
->
GetNodes
().
GetEndOfContent
(),
-
1
);
SwPosition
aPos
(
aIdx
);
const
SwTable
*
pTable
=
m_pDoc
->
InsertTable
(
SwInsertTableOptions
(
tabopts
::
HEADLINE_NO_BORDER
,
0
),
aPos
,
1
,
3
,
0
);
SwTableNode
*
pTableNode
=
pTable
->
GetTableNode
();
SwTableFormulaTest
aFormula
(
"<
\x12
-1,0>+<Table1.A1>"
,
pTableNode
);
aFormula
.
PtrToBoxNm
(
pTable
);
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"<?>+<Table1.?>"
),
aFormula
.
GetFormula
());
}
void
SwDocTest
::
testMarkMove
()
{
IDocumentMarkAccess
*
pMarksAccess
=
m_pDoc
->
getIDocumentMarkAccess
();
...
...
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