diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-03-16 17:27:11 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 11:32:24 +0100 |
commit | a13007adddadf7f5c7b503d6732cf11f3e62e619 (patch) | |
tree | 0b9bbc1c7019ba2d2396bc5affcca87ad61a9c00 /vcl/qa | |
parent | efa40d415046d377b293fea14a4a3c3fd1bf0129 (diff) |
vcl: fix virtual device lifecycle.
Also remove an over-optimistic assert & ref-holding in dispose piece.
Change-Id: I6ce6abb666c8143502fc450a26e1ba2aac787455
Diffstat (limited to 'vcl/qa')
-rw-r--r-- | vcl/qa/cppunit/lifecycle.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx index 04a4719d2e3f..8be94a5f6c3e 100644 --- a/vcl/qa/cppunit/lifecycle.cxx +++ b/vcl/qa/cppunit/lifecycle.cxx @@ -15,6 +15,7 @@ #include <vcl/edit.hxx> #include <vcl/combobox.hxx> #include <vcl/field.hxx> +#include <vcl/virdev.hxx> class LifecycleTest : public test::BootstrapFixture { @@ -24,6 +25,7 @@ public: LifecycleTest() : BootstrapFixture(true, false) {} void testCast(); + void testVirtualDevice(); void testMultiDispose(); void testIsolatedWidgets(); void testParentedWidgets(); @@ -31,6 +33,7 @@ public: CPPUNIT_TEST_SUITE(LifecycleTest); CPPUNIT_TEST(testCast); + CPPUNIT_TEST(testVirtualDevice); CPPUNIT_TEST(testMultiDispose); CPPUNIT_TEST(testIsolatedWidgets); CPPUNIT_TEST(testParentedWidgets); @@ -52,6 +55,11 @@ void LifecycleTest::testCast() // VclPtr<PushButton> xButton2(xWindow); } +void LifecycleTest::testVirtualDevice() +{ + VclPtr<VirtualDevice> pVDev = new VirtualDevice(); +} + void LifecycleTest::testMultiDispose() { VclPtr<WorkWindow> xWin(new WorkWindow((vcl::Window *)NULL, |