qt5base-lts/tests/baseline/painting/scripts/deviceclipping.qps
Eirik Aavitsland e8f93e38de Rename and restructure the baseline (lancelot) testing code
In preparation for addition of new baseline tests, establish a new
test category, "baseline". This is similar to the category
"benchmarks" in that it contains tests that use the QTest framework,
but conceptually are not unit tests, in contrast to those under auto/.

Move the existing QPainter baseline test, tst_lancelot, into this new
category, and rename it accordingly.

Baseline tests use the QBaselineTest extension to QTest. Move that
extension too into the tests/baseline directory, allowing the clean
out of the baselineserver directory.

Pick-to: 6.2
Change-Id: I1b527f5867c953b1d22be73798fcf7d1494712ea
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-11-16 14:01:50 +01:00

48 lines
801 B
Plaintext

# Version: 1
# CheckVsReference: 5%
setBrush 0xff7f7f
setPen 0x7f0000
path_moveTo path -1000000 10000
path_cubicTo path 100 100 100 150 150 400
path_closeSubpath path
begin_block drawing
drawPath ellipse
drawLine -1000000 200 200 200
drawLine 200 -1000000 200 200
drawLine 200 200 1000000 200
drawLine 200 200 200 1000000
drawLine -1000000 -1000000 200 200
drawPolygon [-1000000 100 100 -1000000 100 100]
drawRect 300 -500000 1000000 1000000
drawPath path
end_block
save
translate 20 20
setBrush #0x7f7f7fff
setPen #0x7f00007f
repeat_block drawing
translate 20 20
setRenderHint Antialiasing
setBrush #0x7f7fff7f
setPen #0x7f007f00
repeat_block drawing
restore
setPen 0x00007f 2
setRenderHint Antialiasing
drawLine 0 -200 200 200
setPen 0x007f00 10
drawLine 0 -200 200 0