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
921dce61
Kaydet (Commit)
921dce61
authored
May 04, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Let's just combine the two tests, since one requires the other.
Change-Id: I I4c02aa1d459f7d5c2a1d9c38255aae3c3043dda6
üst
7b773d9c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
12 deletions
+4
-12
scannotationshapeobj.cxx
sc/qa/extras/scannotationshapeobj.cxx
+2
-3
xtext.hxx
test/inc/test/text/xtext.hxx
+1
-2
xtext.cxx
test/source/text/xtext.cxx
+1
-7
No files found.
sc/qa/extras/scannotationshapeobj.cxx
Dosyayı görüntüle @
921dce61
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
#include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
#include <com/sun/star/sheet/XSpreadsheet.hpp>
#include <com/sun/star/sheet/XSpreadsheet.hpp>
#define NUMBER_OF_TESTS
2
#define NUMBER_OF_TESTS
1
namespace
sc_apitest
{
namespace
sc_apitest
{
...
@@ -52,8 +52,7 @@ public:
...
@@ -52,8 +52,7 @@ public:
CPPUNIT_TEST_SUITE
(
ScAnnotationShapeObj
);
CPPUNIT_TEST_SUITE
(
ScAnnotationShapeObj
);
// XText
// XText
CPPUNIT_TEST
(
testInsertTextContent
);
CPPUNIT_TEST
(
testInsertRemoveTextContent
);
CPPUNIT_TEST
(
testRemoveTextContent
);
CPPUNIT_TEST_SUITE_END
();
CPPUNIT_TEST_SUITE_END
();
...
...
test/inc/test/text/xtext.hxx
Dosyayı görüntüle @
921dce61
...
@@ -45,8 +45,7 @@ public:
...
@@ -45,8 +45,7 @@ public:
virtual
uno
::
Reference
<
uno
::
XInterface
>
init
()
=
0
;
virtual
uno
::
Reference
<
uno
::
XInterface
>
init
()
=
0
;
virtual
uno
::
Reference
<
text
::
XTextContent
>
getTextContent
()
=
0
;
virtual
uno
::
Reference
<
text
::
XTextContent
>
getTextContent
()
=
0
;
void
testInsertTextContent
();
void
testInsertRemoveTextContent
();
void
testRemoveTextContent
();
};
};
}
}
...
...
test/source/text/xtext.cxx
Dosyayı görüntüle @
921dce61
...
@@ -34,18 +34,12 @@ namespace apitest {
...
@@ -34,18 +34,12 @@ namespace apitest {
XText
::~
XText
()
{}
XText
::~
XText
()
{}
void
XText
::
testInsertTextContent
()
void
XText
::
testInsert
Remove
TextContent
()
{
{
uno
::
Reference
<
text
::
XText
>
xText
(
init
(),
UNO_QUERY_THROW
);
uno
::
Reference
<
text
::
XText
>
xText
(
init
(),
UNO_QUERY_THROW
);
uno
::
Reference
<
text
::
XTextRange
>
xCursor
(
xText
->
createTextCursor
(),
UNO_QUERY_THROW
);
uno
::
Reference
<
text
::
XTextRange
>
xCursor
(
xText
->
createTextCursor
(),
UNO_QUERY_THROW
);
xText
->
insertTextContent
(
xCursor
,
getTextContent
(),
sal_False
);
xText
->
insertTextContent
(
xCursor
,
getTextContent
(),
sal_False
);
}
void
XText
::
testRemoveTextContent
()
{
testInsertTextContent
();
uno
::
Reference
<
text
::
XText
>
xText
(
init
(),
UNO_QUERY_THROW
);
xText
->
removeTextContent
(
getTextContent
());
xText
->
removeTextContent
(
getTextContent
());
}
}
...
...
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