diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-05-26 11:03:06 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-05-26 15:55:37 +0200 |
commit | 3a93748c9c4faadeb9ab4eb21706d187677549fa (patch) | |
tree | a89371682cb4729a15df1630cf26a19fb6d0e8aa /vcl/qa/cppunit | |
parent | 6cd885b46bf168a1fe0d91231a1b6d283f813ed3 (diff) |
use Skia to do dashed lines, no need to do it manually (tdf#130431)
Change-Id: Id5efe7227f3c2bcb5ef6f1b990327e72014e8c47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94857
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r-- | vcl/qa/cppunit/BackendTest.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/BackendTest.cxx b/vcl/qa/cppunit/BackendTest.cxx index b34dda5262ec..ff4ed0d87251 100644 --- a/vcl/qa/cppunit/BackendTest.cxx +++ b/vcl/qa/cppunit/BackendTest.cxx @@ -495,6 +495,16 @@ public: CPPUNIT_ASSERT(eResult != vcl::test::TestResult::Failed); } + void testDashedLine() + { + vcl::test::OutputDeviceTestLine aOutDevTest; + Bitmap aBitmap = aOutDevTest.setupDashedLine(); + auto eResult = vcl::test::OutputDeviceTestLine::checkDashedLine(aBitmap); + exportImage("10-01_dashed_line_test.png", aBitmap); + if (SHOULD_ASSERT) + CPPUNIT_ASSERT(eResult != vcl::test::TestResult::Failed); + } + void testTdf124848() { ScopedVclPtr<VirtualDevice> device = VclPtr<VirtualDevice>::Create(DeviceFormat::DEFAULT); @@ -575,6 +585,8 @@ public: CPPUNIT_TEST(testClipPolyPolygon); CPPUNIT_TEST(testClipB2DPolyPolygon); + CPPUNIT_TEST(testDashedLine); + CPPUNIT_TEST(testTdf124848); CPPUNIT_TEST_SUITE_END(); |