Kaydet (Commit) 06f826c8 authored tarafından Michael Meeks's avatar Michael Meeks

vcl: fix lifecycle test to disposeOnce.

Change-Id: Idef33e0b8e6c986c8808c2b611c5f4b6632e7511
üst 808f69e3
...@@ -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->disposeOnce();
xWin->dispose(); xWin->disposeOnce();
xWin->dispose(); xWin->disposeOnce();
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->disposeOnce();
xWin->dispose(); xWin->disposeOnce();
} }
CPPUNIT_TEST_SUITE_REGISTRATION(LifecycleTest); CPPUNIT_TEST_SUITE_REGISTRATION(LifecycleTest);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment