qt5base-lts/tests/baseline/painting/scripts/pens_cosmetic.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

116 lines
2.0 KiB
Plaintext

# Version: 1
# CheckVsReference: 1% (0 0 585 470)
path_addEllipse path 22 0 7 7
path_addRect path 25 5 4 4
translate 20 20
setPen black 0
pen_setCosmetic false
begin_block lines
save
drawLine 0 0 10 10
drawLine 2 0 10 0
drawLine 0 2 0 10
drawPolygon [12 0 20 0 15 10]
drawPath path
drawEllipse 32 0 8 8
drawPoint 36 4
translate 100 0
save
scale 4 1
drawLine 0 0 10 10
drawLine 2 0 10 0
drawLine 0 2 0 10
drawPolygon [12 0 20 0 15 10]
drawPath path
drawEllipse 32 0 8 8
drawPoint 36 4
restore
translate 200 0
save
scale 1 4
drawLine 0 0 10 10
drawLine 2 0 10 0
drawLine 0 2 0 10
drawPolygon [12 0 20 0 15 10]
drawPath path
drawEllipse 32 0 8 8
drawPoint 36 4
restore
translate 100 0
save
scale 4 4
drawLine 0 0 10 10
drawLine 2 0 10 0
drawLine 0 2 0 10
drawPolygon [12 0 20 0 15 10]
drawPath path
drawEllipse 32 0 8 8
drawPoint 36 4
restore
restore
end_block
drawText 580 15 "non-cosmetic, 0-width"
translate 0 50
setPen black 2
pen_setCosmetic false
repeat_block lines
drawText 580 15 "non-cosmetic, 2-width"
translate 0 20
translate 0 50
setPen black 0
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 0-width"
translate 0 50
setPen black 2
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 2-width"
setRenderHint Antialiasing
translate 0 20
translate 0 50
setPen black 0
pen_setCosmetic false
repeat_block lines
drawText 580 15 "non-cosmetic, 0-width"
translate 0 50
setPen black 2
pen_setCosmetic false
repeat_block lines
drawText 580 15 "non-cosmetic, 2-width"
translate 0 20
translate 0 50
setPen black 0
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 0-width"
translate 0 50
setPen black 2
pen_setCosmetic true
repeat_block lines
drawText 580 15 "cosmetic, 2-width"
translate 0 70
drawText 0 0 "scale(1, 1)"
drawText 150 0 "scale(4, 1)"
drawText 300 0 "scale(1, 4)"
drawText 450 0 "scale(4, 4)"