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
9e6570f1
Kaydet (Commit)
9e6570f1
authored
May 02, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bnc#779630 testcase
Change-Id: Ia888670ad7a5b51c9b6a3d05676b192456311704
üst
9a37613b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
n779630.docx
sw/qa/extras/ooxmlimport/data/n779630.docx
+0
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+27
-0
No files found.
sw/qa/extras/ooxmlimport/data/n779630.docx
0 → 100755
Dosyayı görüntüle @
9e6570f1
File added
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
9e6570f1
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/document/XEmbeddedObjectSupplier2.hpp>
#include <com/sun/star/document/XEmbeddedObjectSupplier2.hpp>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/drawing/XControlShape.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
#include <com/sun/star/text/HoriOrientation.hpp>
#include <com/sun/star/text/HoriOrientation.hpp>
...
@@ -109,6 +110,7 @@ public:
...
@@ -109,6 +110,7 @@ public:
void
testFdo63685
();
void
testFdo63685
();
void
testN592908_Frame
();
void
testN592908_Frame
();
void
testN592908_Picture
();
void
testN592908_Picture
();
void
testN779630
();
CPPUNIT_TEST_SUITE
(
Test
);
CPPUNIT_TEST_SUITE
(
Test
);
#if !defined(MACOSX) && !defined(WNT)
#if !defined(MACOSX) && !defined(WNT)
...
@@ -188,6 +190,7 @@ void Test::run()
...
@@ -188,6 +190,7 @@ void Test::run()
{
"fdo63685.docx"
,
&
Test
::
testFdo63685
},
{
"fdo63685.docx"
,
&
Test
::
testFdo63685
},
{
"n592908-frame.docx"
,
&
Test
::
testN592908_Frame
},
{
"n592908-frame.docx"
,
&
Test
::
testN592908_Frame
},
{
"n592908-picture.docx"
,
&
Test
::
testN592908_Picture
},
{
"n592908-picture.docx"
,
&
Test
::
testN592908_Picture
},
{
"n779630.docx"
,
&
Test
::
testN779630
},
};
};
header
();
header
();
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
SAL_N_ELEMENTS
(
aMethods
);
++
i
)
...
@@ -1342,6 +1345,30 @@ void Test::testN592908_Picture()
...
@@ -1342,6 +1345,30 @@ void Test::testN592908_Picture()
CPPUNIT_ASSERT_EQUAL
(
eValue
,
text
::
WrapTextMode_PARALLEL
);
CPPUNIT_ASSERT_EQUAL
(
eValue
,
text
::
WrapTextMode_PARALLEL
);
}
}
void
Test
::
testN779630
()
{
uno
::
Reference
<
drawing
::
XDrawPageSupplier
>
xDrawPageSupplier
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Reference
<
container
::
XIndexAccess
>
xDraws
(
xDrawPageSupplier
->
getDrawPage
(),
uno
::
UNO_QUERY
);
// First shape: date picker
uno
::
Reference
<
drawing
::
XControlShape
>
xControlShape
(
xDraws
->
getByIndex
(
0
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
xControlShape
->
getControl
(),
uno
::
UNO_QUERY
);
uno
::
Reference
<
lang
::
XServiceInfo
>
xServiceInfo
(
xPropertySet
,
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
true
,
bool
(
xServiceInfo
->
supportsService
(
"com.sun.star.form.component.DateField"
)));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"date default text"
),
getProperty
<
OUString
>
(
xPropertySet
,
"HelpText"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int16
(
8
),
getProperty
<
sal_Int16
>
(
xPropertySet
,
"DateFormat"
));
CPPUNIT_ASSERT_EQUAL
(
true
,
bool
(
getProperty
<
sal_Bool
>
(
xPropertySet
,
"Dropdown"
)));
// Second shape: combo box
xControlShape
.
set
(
xDraws
->
getByIndex
(
1
),
uno
::
UNO_QUERY
);
xPropertySet
.
set
(
xControlShape
->
getControl
(),
uno
::
UNO_QUERY
);
xServiceInfo
.
set
(
xPropertySet
,
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
true
,
bool
(
xServiceInfo
->
supportsService
(
"com.sun.star.form.component.ComboBox"
)));
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"dropdown default text"
),
getProperty
<
OUString
>
(
xPropertySet
,
"DefaultText"
));
CPPUNIT_ASSERT_EQUAL
(
sal_Int32
(
2
),
getProperty
<
uno
::
Sequence
<
OUString
>
>
(
xPropertySet
,
"StringItemList"
).
getLength
());
CPPUNIT_ASSERT_EQUAL
(
true
,
bool
(
getProperty
<
sal_Bool
>
(
xPropertySet
,
"Dropdown"
)));
}
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