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
d6775990
Kaydet (Commit)
d6775990
authored
Mar 24, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
also test HasOnlyOneListener and HasWriterListeners
Change-Id: Iad352a07aa0bb04c031a16fe89d6a83e2502bcf1
üst
abb863a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
uwriter.cxx
sw/qa/core/uwriter.cxx
+7
-0
No files found.
sw/qa/core/uwriter.cxx
Dosyayı görüntüle @
d6775990
...
@@ -1431,12 +1431,19 @@ void SwDocTest::testClientModify()
...
@@ -1431,12 +1431,19 @@ void SwDocTest::testClientModify()
TestClient
aClient1
,
aClient2
;
TestClient
aClient1
,
aClient2
;
OtherTestClient
aOtherClient1
;
OtherTestClient
aOtherClient1
;
// test client registration
// test client registration
CPPUNIT_ASSERT
(
!
aMod
.
HasWriterListeners
());
CPPUNIT_ASSERT
(
!
aMod
.
HasOnlyOneListener
());
CPPUNIT_ASSERT_EQUAL
(
aClient1
.
GetRegisteredIn
(),
static_cast
<
SwModify
*>
(
nullptr
));
CPPUNIT_ASSERT_EQUAL
(
aClient1
.
GetRegisteredIn
(),
static_cast
<
SwModify
*>
(
nullptr
));
CPPUNIT_ASSERT_EQUAL
(
aClient2
.
GetRegisteredIn
(),
static_cast
<
SwModify
*>
(
nullptr
));
CPPUNIT_ASSERT_EQUAL
(
aClient2
.
GetRegisteredIn
(),
static_cast
<
SwModify
*>
(
nullptr
));
CPPUNIT_ASSERT_EQUAL
(
aClient2
.
GetRegisteredIn
(),
static_cast
<
SwModify
*>
(
nullptr
));
aMod
.
Add
(
&
aClient1
);
aMod
.
Add
(
&
aClient1
);
CPPUNIT_ASSERT
(
aMod
.
HasWriterListeners
());
CPPUNIT_ASSERT
(
aMod
.
HasOnlyOneListener
());
aMod
.
Add
(
&
aClient2
);
aMod
.
Add
(
&
aClient2
);
CPPUNIT_ASSERT_EQUAL
(
aClient1
.
GetRegisteredIn
(),
static_cast
<
SwModify
*>
(
&
aMod
));
CPPUNIT_ASSERT_EQUAL
(
aClient1
.
GetRegisteredIn
(),
static_cast
<
SwModify
*>
(
&
aMod
));
CPPUNIT_ASSERT_EQUAL
(
aClient2
.
GetRegisteredIn
(),
static_cast
<
SwModify
*>
(
&
aMod
));
CPPUNIT_ASSERT_EQUAL
(
aClient2
.
GetRegisteredIn
(),
static_cast
<
SwModify
*>
(
&
aMod
));
CPPUNIT_ASSERT
(
aMod
.
HasWriterListeners
());
CPPUNIT_ASSERT
(
!
aMod
.
HasOnlyOneListener
());
// test broadcast
// test broadcast
aMod
.
ModifyBroadcast
(
nullptr
,
nullptr
);
aMod
.
ModifyBroadcast
(
nullptr
,
nullptr
);
CPPUNIT_ASSERT_EQUAL
(
aClient1
.
m_nModifyCount
,
1
);
CPPUNIT_ASSERT_EQUAL
(
aClient1
.
m_nModifyCount
,
1
);
...
...
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