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/backendtest/VisualBackendTest.cxx | |
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/backendtest/VisualBackendTest.cxx')
-rw-r--r-- | vcl/backendtest/VisualBackendTest.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx index 5daa9a642d55..08efc1d381a3 100644 --- a/vcl/backendtest/VisualBackendTest.cxx +++ b/vcl/backendtest/VisualBackendTest.cxx @@ -576,7 +576,7 @@ public: } else if (mnTest % gnNumberOfTests == 7) { - std::vector<tools::Rectangle> aRegions = setupRegions(3, 1, nWidth, nHeight); + std::vector<tools::Rectangle> aRegions = setupRegions(2, 2, nWidth, nHeight); aRectangle = aRegions[index++]; { @@ -587,6 +587,13 @@ public: } aRectangle = aRegions[index++]; { + vcl::test::OutputDeviceTestLine aOutDevTest; + Bitmap aBitmap = aOutDevTest.setupDashedLine(); + assertAndSetBackground(vcl::test::OutputDeviceTestLine::checkDashedLine(aBitmap), aRectangle, rRenderContext); + drawBitmapScaledAndCentered(aRectangle, aBitmap, rRenderContext); + } + aRectangle = aRegions[index++]; + { vcl::test::OutputDeviceTestGradient aOutDevTest; Bitmap aBitmap = aOutDevTest.setupLinearGradient(); drawBitmapScaledAndCentered(aRectangle, aBitmap, rRenderContext); |