402acbcfad
One of the problems is that canvas apparently works only with windows, but tests obviously need an offscreen surface. This patch moves Window::GetCanvas() to OutputDevice, and makes vclcanvas capable of working with OutputDevice classes that are not windows. Other canvas implementations still don't work, but presumably at least cairocanvas could be fixed too. This commit adds a "simple" test that just draws a line and tries to verify it's been drawn properly. Adding another test should be a matter of basing it on this existing one, and then copy&pasting the complicated UNO way of drawing using canvas from somewhere, such as canvas/workben/canvasdemo.cxx. Change-Id: I42db12b09433763cd31c3dd497c10157424b8598 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115117 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#*************************************************************************
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
#*************************************************************************
|
|
|
|
$(eval $(call gb_CppunitTest_CppunitTest,canvas_test))
|
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,canvas_test, \
|
|
canvas/qa/cppunit/canvastest \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_external,canvas_test,boost_headers))
|
|
|
|
$(eval $(call gb_CppunitTest_use_libraries,canvas_test, \
|
|
basegfx \
|
|
comphelper \
|
|
cppu \
|
|
cppuhelper \
|
|
sal \
|
|
test \
|
|
tl \
|
|
unotest \
|
|
vcl \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_sdk_api,canvas_test))
|
|
|
|
$(eval $(call gb_CppunitTest_use_ure,canvas_test))
|
|
$(eval $(call gb_CppunitTest_use_vcl,canvas_test))
|
|
|
|
$(eval $(call gb_CppunitTest_use_components,canvas_test,\
|
|
canvas/source/vcl/vclcanvas \
|
|
canvas/source/factory/canvasfactory \
|
|
configmgr/source/configmgr \
|
|
i18npool/util/i18npool \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_configuration,canvas_test))
|
|
|
|
# vim: set noet sw=4 ts=4:
|