summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2021-10-08 02:05:50 +1100
committerTomaž Vajngerl <quikee@gmail.com>2021-10-11 11:55:09 +0200
commita35c63e19891a1f7cebb54746ca9793c30b16b95 (patch)
tree2ed1463ad39b02dd4ee3496d6a6585f170f30d84
parent2a548383d7a8772e19652a2830db7b2ce009f0af (diff)
vcl: ensure test VDevs are always bigger than operation being tested
Change-Id: I4b57db489e950d75929be51210c113e6a149b534 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123222 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r--vcl/qa/cppunit/outdev.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/qa/cppunit/outdev.cxx b/vcl/qa/cppunit/outdev.cxx
index b360dfec9336..7c333593c346 100644
--- a/vcl/qa/cppunit/outdev.cxx
+++ b/vcl/qa/cppunit/outdev.cxx
@@ -1048,7 +1048,7 @@ void VclOutdevTest::testErase()
aMtf.Record(pVDev.get());
// this actually triggers Erase()
- pVDev->SetOutputSizePixel(Size(1, 1));
+ pVDev->SetOutputSizePixel(Size(10, 10));
pVDev->Erase();
MetaAction* pAction = aMtf.GetAction(INITIAL_SETUP_ACTION_COUNT);
@@ -1079,7 +1079,7 @@ void VclOutdevTest::testDrawPixel()
aMtf.Record(pVDev.get());
// triggers an Erase()
- pVDev->SetOutputSizePixel(Size(1, 1));
+ pVDev->SetOutputSizePixel(Size(10, 10));
pVDev->SetLineColor(COL_RED);
pVDev->DrawPixel(Point(0, 0), COL_GREEN);
@@ -1122,7 +1122,7 @@ void VclOutdevTest::testDrawLine()
GDIMetaFile aMtf;
aMtf.Record(pVDev.get());
- pVDev->SetOutputSizePixel(Size(1, 100));
+ pVDev->SetOutputSizePixel(Size(10, 100));
pVDev->DrawLine(Point(0, 0), Point(0, 50));
MetaAction* pAction = aMtf.GetAction(INITIAL_SETUP_ACTION_COUNT);