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
bf670bcd
Kaydet (Commit)
bf670bcd
authored
Ock 14, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#57938 testcase
Change-Id: I5a219011952f37861b0688e17afca1b3b07fdc31
üst
b1859c3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
swdoc-test.cxx
sw/qa/core/swdoc-test.cxx
+22
-0
No files found.
sw/qa/core/swdoc-test.cxx
Dosyayı görüntüle @
bf670bcd
...
@@ -45,6 +45,8 @@
...
@@ -45,6 +45,8 @@
#include <sfx2/docfile.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/sfxmodelfactory.hxx>
#include <sfx2/sfxmodelfactory.hxx>
#include <xmloff/odffields.hxx>
#include "breakit.hxx"
#include "breakit.hxx"
#include "doc.hxx"
#include "doc.hxx"
#include "docsh.hxx"
#include "docsh.hxx"
...
@@ -88,6 +90,7 @@ public:
...
@@ -88,6 +90,7 @@ public:
void
testSwScanner
();
void
testSwScanner
();
void
testUserPerceivedCharCount
();
void
testUserPerceivedCharCount
();
void
testGraphicAnchorDeletion
();
void
testGraphicAnchorDeletion
();
void
testFdo57938
();
CPPUNIT_TEST_SUITE
(
SwDocTest
);
CPPUNIT_TEST_SUITE
(
SwDocTest
);
CPPUNIT_TEST
(
randomTest
);
CPPUNIT_TEST
(
randomTest
);
...
@@ -98,6 +101,7 @@ public:
...
@@ -98,6 +101,7 @@ public:
CPPUNIT_TEST
(
testSwScanner
);
CPPUNIT_TEST
(
testSwScanner
);
CPPUNIT_TEST
(
testUserPerceivedCharCount
);
CPPUNIT_TEST
(
testUserPerceivedCharCount
);
CPPUNIT_TEST
(
testGraphicAnchorDeletion
);
CPPUNIT_TEST
(
testGraphicAnchorDeletion
);
CPPUNIT_TEST
(
testFdo57938
);
CPPUNIT_TEST_SUITE_END
();
CPPUNIT_TEST_SUITE_END
();
private
:
private
:
...
@@ -874,6 +878,24 @@ void SwDocTest::randomTest()
...
@@ -874,6 +878,24 @@ void SwDocTest::randomTest()
}
}
}
}
void
SwDocTest
::
testFdo57938
()
{
SwNodeIndex
aIdx
(
m_pDoc
->
GetNodes
().
GetEndOfContent
(),
-
1
);
SwPaM
aPaM
(
aIdx
);
// Insert "atest" and create a fieldmark around "test".
OUString
aTest
(
"atest"
);
m_pDoc
->
InsertString
(
aPaM
,
aTest
);
aPaM
.
SetMark
();
aPaM
.
GetPoint
()
->
nContent
=
1
;
IDocumentMarkAccess
*
pMarksAccess
=
m_pDoc
->
getIDocumentMarkAccess
();
pMarksAccess
->
makeFieldBookmark
(
aPaM
,
""
,
ODF_COMMENTRANGE
);
aPaM
.
GetPoint
()
->
nContent
=
0
;
aPaM
.
GetMark
()
->
nContent
=
1
;
// The problem was that "a" was considered read-only, so could not be deleted.
CPPUNIT_ASSERT_EQUAL
(
false
,
bool
(
aPaM
.
HasReadonlySel
(
false
)));
}
void
SwDocTest
::
setUp
()
void
SwDocTest
::
setUp
()
{
{
BootstrapFixture
::
setUp
();
BootstrapFixture
::
setUp
();
...
...
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