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
cbe11506
Kaydet (Commit)
cbe11506
authored
Agu 21, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:defaultparams
Change-Id: Id81d6a9aeeb282acf9b961c1a0c7c3961bc17b72
üst
732f69e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
macros-test.cxx
sw/qa/core/macros-test.cxx
+5
-5
No files found.
sw/qa/core/macros-test.cxx
Dosyayı görüntüle @
cbe11506
...
@@ -214,7 +214,7 @@ void SwMacrosTest::testBookmarkDeleteAndJoin()
...
@@ -214,7 +214,7 @@ void SwMacrosTest::testBookmarkDeleteAndJoin()
aPaM
.
Exchange
();
aPaM
.
Exchange
();
aPaM
.
Move
(
fnMoveBackward
,
fnGoDoc
);
aPaM
.
Move
(
fnMoveBackward
,
fnGoDoc
);
// delete
// delete
rIDCO
.
DeleteAndJoin
(
aPaM
,
false
);
rIDCO
.
DeleteAndJoin
(
aPaM
);
for
(
IDocumentMarkAccess
::
const_iterator_t
i
=
rIDMA
.
getAllMarksBegin
();
i
!=
rIDMA
.
getAllMarksEnd
();
++
i
)
for
(
IDocumentMarkAccess
::
const_iterator_t
i
=
rIDMA
.
getAllMarksBegin
();
i
!=
rIDMA
.
getAllMarksEnd
();
++
i
)
{
{
...
@@ -243,7 +243,7 @@ void SwMacrosTest::testBookmarkDeleteTdf90816()
...
@@ -243,7 +243,7 @@ void SwMacrosTest::testBookmarkDeleteTdf90816()
CPPUNIT_ASSERT
(
pMark
);
CPPUNIT_ASSERT
(
pMark
);
// delete the same selection as the bookmark
// delete the same selection as the bookmark
rIDCO
.
DeleteAndJoin
(
aPaM
,
false
);
rIDCO
.
DeleteAndJoin
(
aPaM
);
// bookmark still there?
// bookmark still there?
auto
iter
=
rIDMA
.
getAllMarksBegin
();
auto
iter
=
rIDMA
.
getAllMarksBegin
();
...
@@ -440,7 +440,7 @@ void SwMacrosTest::testFindReplace()
...
@@ -440,7 +440,7 @@ void SwMacrosTest::testFindReplace()
SwDoc
*
const
pDoc
=
pTextDoc
->
GetDocShell
()
->
GetDoc
();
SwDoc
*
const
pDoc
=
pTextDoc
->
GetDocShell
()
->
GetDoc
();
SwNodeIndex
aIdx
(
pDoc
->
GetNodes
().
GetEndOfContent
(),
-
1
);
SwNodeIndex
aIdx
(
pDoc
->
GetNodes
().
GetEndOfContent
(),
-
1
);
// use a UnoCrsr so it will be corrected when deleting nodes
// use a UnoCrsr so it will be corrected when deleting nodes
auto
pPaM
(
pDoc
->
CreateUnoCrsr
(
SwPosition
(
aIdx
)
,
false
));
auto
pPaM
(
pDoc
->
CreateUnoCrsr
(
SwPosition
(
aIdx
)));
IDocumentContentOperations
&
rIDCO
(
pDoc
->
getIDocumentContentOperations
());
IDocumentContentOperations
&
rIDCO
(
pDoc
->
getIDocumentContentOperations
());
rIDCO
.
InsertString
(
*
pPaM
,
OUString
(
"foo"
));
rIDCO
.
InsertString
(
*
pPaM
,
OUString
(
"foo"
));
...
@@ -464,7 +464,7 @@ void SwMacrosTest::testFindReplace()
...
@@ -464,7 +464,7 @@ void SwMacrosTest::testFindReplace()
// find newline on 1st paragraph
// find newline on 1st paragraph
bool
bFound
=
pPaM
->
Find
(
bool
bFound
=
pPaM
->
Find
(
opts
,
false
,
DOCPOS_CURR
,
DOCPOS_END
,
bCancel
,
FND_IN_BODY
,
false
);
opts
,
false
,
DOCPOS_CURR
,
DOCPOS_END
,
bCancel
,
FND_IN_BODY
);
CPPUNIT_ASSERT
(
bFound
);
CPPUNIT_ASSERT
(
bFound
);
CPPUNIT_ASSERT
(
pPaM
->
HasMark
());
CPPUNIT_ASSERT
(
pPaM
->
HasMark
());
CPPUNIT_ASSERT_EQUAL
(
OUString
(
""
),
pPaM
->
GetText
());
CPPUNIT_ASSERT_EQUAL
(
OUString
(
""
),
pPaM
->
GetText
());
...
@@ -472,7 +472,7 @@ void SwMacrosTest::testFindReplace()
...
@@ -472,7 +472,7 @@ void SwMacrosTest::testFindReplace()
// now do another Find, inside the selection from the first Find
// now do another Find, inside the selection from the first Find
// opts.searchFlags = 71680;
// opts.searchFlags = 71680;
bFound
=
pPaM
->
Find
(
bFound
=
pPaM
->
Find
(
opts
,
false
,
DOCPOS_CURR
,
DOCPOS_END
,
bCancel
,
FND_IN_SEL
,
false
);
opts
,
false
,
DOCPOS_CURR
,
DOCPOS_END
,
bCancel
,
FND_IN_SEL
);
CPPUNIT_ASSERT
(
bFound
);
CPPUNIT_ASSERT
(
bFound
);
CPPUNIT_ASSERT
(
pPaM
->
HasMark
());
CPPUNIT_ASSERT
(
pPaM
->
HasMark
());
CPPUNIT_ASSERT_EQUAL
(
OUString
(
""
),
pPaM
->
GetText
());
CPPUNIT_ASSERT_EQUAL
(
OUString
(
""
),
pPaM
->
GetText
());
...
...
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