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
06f826c8
Kaydet (Commit)
06f826c8
authored
Mar 13, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: fix lifecycle test to disposeOnce.
Change-Id: Idef33e0b8e6c986c8808c2b611c5f4b6632e7511
üst
808f69e3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lifecycle.cxx
vcl/qa/cppunit/lifecycle.cxx
+5
-5
No files found.
vcl/qa/cppunit/lifecycle.cxx
Dosyayı görüntüle @
06f826c8
...
@@ -57,9 +57,9 @@ void LifecycleTest::testMultiDispose()
...
@@ -57,9 +57,9 @@ void LifecycleTest::testMultiDispose()
VclPtr
<
WorkWindow
>
xWin
(
new
WorkWindow
((
vcl
::
Window
*
)
NULL
,
VclPtr
<
WorkWindow
>
xWin
(
new
WorkWindow
((
vcl
::
Window
*
)
NULL
,
WB_APP
|
WB_STDWORK
));
WB_APP
|
WB_STDWORK
));
CPPUNIT_ASSERT
(
xWin
.
get
()
!=
NULL
);
CPPUNIT_ASSERT
(
xWin
.
get
()
!=
NULL
);
xWin
->
dispose
();
xWin
->
dispose
Once
();
xWin
->
dispose
();
xWin
->
dispose
Once
();
xWin
->
dispose
();
xWin
->
dispose
Once
();
CPPUNIT_ASSERT
(
xWin
->
GetWindow
(
0
)
==
NULL
);
CPPUNIT_ASSERT
(
xWin
->
GetWindow
(
0
)
==
NULL
);
CPPUNIT_ASSERT
(
xWin
->
GetChild
(
0
)
==
NULL
);
CPPUNIT_ASSERT
(
xWin
->
GetChild
(
0
)
==
NULL
);
CPPUNIT_ASSERT
(
xWin
->
GetChildCount
()
==
0
);
CPPUNIT_ASSERT
(
xWin
->
GetChildCount
()
==
0
);
...
@@ -113,8 +113,8 @@ void LifecycleTest::testChildDispose()
...
@@ -113,8 +113,8 @@ void LifecycleTest::testChildDispose()
CPPUNIT_ASSERT
(
xWin
.
get
()
!=
NULL
);
CPPUNIT_ASSERT
(
xWin
.
get
()
!=
NULL
);
VclPtr
<
DisposableChild
>
xChild
(
new
DisposableChild
(
xWin
.
get
()));
VclPtr
<
DisposableChild
>
xChild
(
new
DisposableChild
(
xWin
.
get
()));
xWin
->
Show
();
xWin
->
Show
();
xChild
->
dispose
();
xChild
->
dispose
Once
();
xWin
->
dispose
();
xWin
->
dispose
Once
();
}
}
CPPUNIT_TEST_SUITE_REGISTRATION
(
LifecycleTest
);
CPPUNIT_TEST_SUITE_REGISTRATION
(
LifecycleTest
);
...
...
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