diff options
author | homeboy445 <akshitsan13@gmail.com> | 2021-08-05 19:56:27 +0530 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-10-22 23:54:40 +0200 |
commit | f8bb970fd385c80b085a071da0f8acc119498005 (patch) | |
tree | 49189de42799c1066565964e6ccf05bd5909dbb0 /vcl/qa/cppunit/BackendTest.cxx | |
parent | 5760cba3b276a372d6cccf3f6b6db7fb26c20351 (diff) |
backendtest:Reconfigured Rectangle tests to be Asymmetrical
The tests were previously drawing squares in the middle, however,
now the tests draws rectangle taking offset from the middle.
Change-Id: I26a4af997feac9ced443d7c9b4e3541ea2ba868a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120076
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/qa/cppunit/BackendTest.cxx')
-rw-r--r-- | vcl/qa/cppunit/BackendTest.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/qa/cppunit/BackendTest.cxx b/vcl/qa/cppunit/BackendTest.cxx index c337ad1f0707..3d14c811f022 100644 --- a/vcl/qa/cppunit/BackendTest.cxx +++ b/vcl/qa/cppunit/BackendTest.cxx @@ -103,7 +103,7 @@ public: return; vcl::test::OutputDeviceTestRect aOutDevTest; Bitmap aBitmap = aOutDevTest.setupRectangle(false); - auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangle(aBitmap); + auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangles(aBitmap); exportImage("01-01_rectangle_test-rectangle.png", aBitmap); if (SHOULD_ASSERT) @@ -116,7 +116,7 @@ public: return; vcl::test::OutputDeviceTestPixel aOutDevTest; Bitmap aBitmap = aOutDevTest.setupRectangle(false); - auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangle(aBitmap); + auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangles(aBitmap); exportImage("01-02_rectangle_test-pixel.png", aBitmap); if (SHOULD_ASSERT) @@ -129,7 +129,7 @@ public: return; vcl::test::OutputDeviceTestLine aOutDevTest; Bitmap aBitmap = aOutDevTest.setupRectangle(false); - auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangle(aBitmap); + auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangles(aBitmap); exportImage("01-03_rectangle_test-line.png", aBitmap); if (SHOULD_ASSERT) @@ -142,7 +142,7 @@ public: return; vcl::test::OutputDeviceTestPolygon aOutDevTest; Bitmap aBitmap = aOutDevTest.setupRectangle(false); - auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangle(aBitmap); + auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangles(aBitmap); exportImage("01-04_rectangle_test-polygon.png", aBitmap); if (SHOULD_ASSERT) CPPUNIT_ASSERT(eResult != vcl::test::TestResult::Failed); @@ -154,7 +154,7 @@ public: return; vcl::test::OutputDeviceTestPolyLine aOutDevTest; Bitmap aBitmap = aOutDevTest.setupRectangle(false); - auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangle(aBitmap); + auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangles(aBitmap); exportImage("01-05_rectangle_test-polyline.png", aBitmap); if (SHOULD_ASSERT) CPPUNIT_ASSERT(eResult != vcl::test::TestResult::Failed); @@ -166,7 +166,7 @@ public: return; vcl::test::OutputDeviceTestPolyLineB2D aOutDevTest; Bitmap aBitmap = aOutDevTest.setupRectangle(false); - auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangle(aBitmap); + auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangles(aBitmap); exportImage("01-06_rectangle_test-polyline_b2d.png", aBitmap); if (SHOULD_ASSERT) CPPUNIT_ASSERT(eResult != vcl::test::TestResult::Failed); @@ -178,7 +178,7 @@ public: return; vcl::test::OutputDeviceTestPolyPolygon aOutDevTest; Bitmap aBitmap = aOutDevTest.setupRectangle(false); - auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangle(aBitmap); + auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangles(aBitmap); exportImage("01-07_rectangle_test-polypolygon.png", aBitmap); if (SHOULD_ASSERT) CPPUNIT_ASSERT(eResult != vcl::test::TestResult::Failed); @@ -190,7 +190,7 @@ public: return; vcl::test::OutputDeviceTestPolyPolygonB2D aOutDevTest; Bitmap aBitmap = aOutDevTest.setupRectangle(false); - auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangle(aBitmap); + auto eResult = vcl::test::OutputDeviceTestCommon::checkRectangles(aBitmap); exportImage("01-08_rectangle_test-polypolygon_b2d.png", aBitmap); if (SHOULD_ASSERT) CPPUNIT_ASSERT(eResult != vcl::test::TestResult::Failed); |