diff options
Diffstat (limited to 'vcl/qa')
-rw-r--r-- | vcl/qa/cppunit/outdev.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/outdev.cxx b/vcl/qa/cppunit/outdev.cxx index ee1dc6a37b8d..f7a50b3bb5d2 100644 --- a/vcl/qa/cppunit/outdev.cxx +++ b/vcl/qa/cppunit/outdev.cxx @@ -58,6 +58,7 @@ public: void testRefPoint(); void testRasterOp(); void testOutputFlag(); + void testDrawMode(); void testAntialias(); void testSystemTextColor(); void testShouldDrawWavePixelAsRect(); @@ -93,6 +94,7 @@ public: CPPUNIT_TEST(testRefPoint); CPPUNIT_TEST(testRasterOp); CPPUNIT_TEST(testAntialias); + CPPUNIT_TEST(testDrawMode); CPPUNIT_TEST(testOutputFlag); CPPUNIT_TEST(testSystemTextColor); CPPUNIT_TEST(testShouldDrawWavePixelAsRect); @@ -814,6 +816,17 @@ void VclOutdevTest::testAntialias() CPPUNIT_ASSERT_EQUAL(AntialiasingFlags::Enable, pVDev->GetAntialiasing()); } +void VclOutdevTest::testDrawMode() +{ + ScopedVclPtrInstance<VirtualDevice> pVDev; + + CPPUNIT_ASSERT_EQUAL(DrawModeFlags::Default, pVDev->GetDrawMode()); + + pVDev->SetDrawMode(DrawModeFlags::BlackLine); + + CPPUNIT_ASSERT_EQUAL(DrawModeFlags::BlackLine, pVDev->GetDrawMode()); +} + void VclOutdevTest::testSystemTextColor() { { |