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
5b7d51af
Kaydet (Commit)
5b7d51af
authored
Mar 27, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add test for tdf#89170
Change-Id: Ia3458ae91ea20aa3f5090f9b85a5030ddde81c3c
üst
8dd2888a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
strike-through.xlsx
sc/qa/unit/data/xlsx/strike-through.xlsx
+0
-0
subsequent_filters-test.cxx
sc/qa/unit/subsequent_filters-test.cxx
+34
-0
No files found.
sc/qa/unit/data/xlsx/strike-through.xlsx
0 → 100644
Dosyayı görüntüle @
5b7d51af
File added
sc/qa/unit/subsequent_filters-test.cxx
Dosyayı görüntüle @
5b7d51af
...
...
@@ -27,6 +27,7 @@
#include <svx/svdoole2.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/editobj.hxx>
#include <editeng/borderline.hxx>
...
...
@@ -188,6 +189,7 @@ public:
void
testCopyMergedNumberFormats
();
void
testVBAUserFunctionXLSM
();
void
testEmbeddedImageXLS
();
void
testEditEngStrikeThroughXLSX
();
CPPUNIT_TEST_SUITE
(
ScFiltersTest
);
CPPUNIT_TEST
(
testBooleanFormatXLSX
);
...
...
@@ -275,6 +277,7 @@ public:
CPPUNIT_TEST
(
testVBAUserFunctionXLSM
);
CPPUNIT_TEST
(
testEmbeddedImageXLS
);
CPPUNIT_TEST
(
testErrorOnExternalReferences
);
CPPUNIT_TEST
(
testEditEngStrikeThroughXLSX
);
CPPUNIT_TEST_SUITE_END
();
private
:
...
...
@@ -2867,6 +2870,37 @@ void ScFiltersTest::testErrorOnExternalReferences()
xDocSh
->
DoClose
();
}
void
ScFiltersTest
::
testEditEngStrikeThroughXLSX
()
{
ScDocShellRef
xDocSh
=
loadDoc
(
"strike-through."
,
XLSX
);
CPPUNIT_ASSERT_MESSAGE
(
"Failed to open doc"
,
xDocSh
.
Is
());
ScDocument
&
rDoc
=
xDocSh
->
GetDocument
();
const
EditTextObject
*
pObj
=
rDoc
.
GetEditText
(
ScAddress
(
0
,
0
,
0
));
CPPUNIT_ASSERT
(
pObj
);
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
1
),
pObj
->
GetParagraphCount
());
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"this is strike through this not"
),
pObj
->
GetText
(
0
));
std
::
vector
<
EECharAttrib
>
aAttribs
;
pObj
->
GetCharAttribs
(
0
,
aAttribs
);
for
(
std
::
vector
<
EECharAttrib
>::
const_iterator
itr
=
aAttribs
.
begin
();
itr
!=
aAttribs
.
end
();
++
itr
)
{
if
(
itr
->
pAttr
->
Which
()
==
EE_CHAR_STRIKEOUT
)
{
const
SvxCrossedOutItem
&
rItem
=
static_cast
<
const
SvxCrossedOutItem
&>
(
*
itr
->
pAttr
);
if
(
itr
->
nStart
==
0
)
{
CPPUNIT_ASSERT
(
rItem
.
GetStrikeout
()
!=
STRIKEOUT_NONE
);
}
else
{
CPPUNIT_ASSERT_EQUAL
(
STRIKEOUT_NONE
,
rItem
.
GetStrikeout
());
}
}
}
}
ScFiltersTest
::
ScFiltersTest
()
:
ScBootstrapFixture
(
"/sc/qa/unit/data"
)
{
...
...
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