summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-31 19:54:41 +0100
committerخالد حسني <khaled@aliftype.com>2022-09-01 05:29:43 +0200
commit22795263e6743005c4f7df3e0dcedd933ed133b4 (patch)
tree15a008799bb7c8e1681a59996ae0661c7df8cd9d /vcl
parent3e544b6938ee509a4f6df4c2e2996d71ce072506 (diff)
use VirtualDevice, not WorkWindow, in test
like commit 8ca13426ca50a9466f552ac1e2f062920003d5ea Date: Tue Aug 30 16:28:38 2022 +0300 Workaround interdependency of tests Change-Id: Ic550f1cae45ff3145a3a25785499bf0d226e4940 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139131 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qa/cppunit/complextext.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx
index d052564d638b..77b9444d1c74 100644
--- a/vcl/qa/cppunit/complextext.cxx
+++ b/vcl/qa/cppunit/complextext.cxx
@@ -240,12 +240,9 @@ void VclComplexTextTest::testCaret()
#if HAVE_MORE_FONTS
// Test caret placement in fonts *without* ligature carets in GDEF table.
- ScopedVclPtrInstance<WorkWindow> pWin(static_cast<vcl::Window *>(nullptr));
- CPPUNIT_ASSERT( pWin );
-
vcl::Font aFont("DejaVu Sans", "Book", Size(0, 200));
- OutputDevice *pOutDev = pWin->GetOutDev();
+ ScopedVclPtrInstance<VirtualDevice> pOutDev;
pOutDev->SetFont( aFont );
OUString aText;
@@ -321,10 +318,7 @@ void VclComplexTextTest::testGdefCaret()
#if HAVE_MORE_FONTS
// Test caret placement in fonts *with* ligature carets in GDEF table.
- ScopedVclPtrInstance<WorkWindow> pWin(static_cast<vcl::Window *>(nullptr));
- CPPUNIT_ASSERT( pWin );
-
- OutputDevice *pOutDev = pWin->GetOutDev();
+ ScopedVclPtrInstance<VirtualDevice> pOutDev;
vcl::Font aFont;
OUString aText;