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

172 lines
3.1 KiB
Plaintext

clearRenderHint
setPen black 0 solidline squarecap
save
translate 20 20
begin_block lines
# 0 -> 45 degress
drawLine 100 100 200 90
drawLine 100 100 200 80
drawLine 100 100 200 70
drawLine 100 100 200 60
drawLine 100 100 200 50
drawLine 100 100 200 40
drawLine 100 100 200 30
drawLine 100 100 200 20
drawLine 100 100 200 10
# 45
drawLine 100 100 200 0
# 45 -> 90
drawLine 100 100 190 0
drawLine 100 100 180 0
drawLine 100 100 170 0
drawLine 100 100 160 0
drawLine 100 100 150 0
drawLine 100 100 140 0
drawLine 100 100 130 0
drawLine 100 100 120 0
drawLine 100 100 110 0
# 90
drawLine 100 100 100 0
# 90 -> 135
drawLine 100 100 90 0
drawLine 100 100 80 0
drawLine 100 100 70 0
drawLine 100 100 60 0
drawLine 100 100 50 0
drawLine 100 100 40 0
drawLine 100 100 30 0
drawLine 100 100 20 0
drawLine 100 100 10 0
# 135
drawLine 100 100 0 0
# 135 -> 180 degress
drawLine 100 100 0 10
drawLine 100 100 0 20
drawLine 100 100 0 30
drawLine 100 100 0 40
drawLine 100 100 0 50
drawLine 100 100 0 60
drawLine 100 100 0 70
drawLine 100 100 0 80
drawLine 100 100 0 90
# 180
drawLine 100 100 0 100
# 180 -> 225
drawLine 100 100 0 110
drawLine 100 100 0 120
drawLine 100 100 0 130
drawLine 100 100 0 140
drawLine 100 100 0 150
drawLine 100 100 0 160
drawLine 100 100 0 170
drawLine 100 100 0 180
drawLine 100 100 0 190
# 225
drawLine 100 100 0 200
# 225 -> 270
drawLine 100 100 10 200
drawLine 100 100 20 200
drawLine 100 100 30 200
drawLine 100 100 40 200
drawLine 100 100 50 200
drawLine 100 100 60 200
drawLine 100 100 70 200
drawLine 100 100 80 200
drawLine 100 100 90 200
# 270
drawLine 100 100 100 200
# 270 -> 315 degrees
drawLine 100 100 110 200
drawLine 100 100 120 200
drawLine 100 100 130 200
drawLine 100 100 140 200
drawLine 100 100 150 200
drawLine 100 100 160 200
drawLine 100 100 170 200
drawLine 100 100 180 200
drawLine 100 100 190 200
# 315
drawLine 100 100 200 200
# 315 -> 360 degress
drawLine 100 100 200 100
drawLine 100 100 200 110
drawLine 100 100 200 120
drawLine 100 100 200 130
drawLine 100 100 200 140
drawLine 100 100 200 150
drawLine 100 100 200 160
drawLine 100 100 200 170
drawLine 100 100 200 180
drawLine 100 100 200 190
end_block
setRenderHint Antialiasing
setPen 0x7fff0000 0 solidline squarecap
repeat_block lines
translate 250.5 0.5
clearRenderHint
setPen black 0 solidline squarecap
repeat_block lines
setRenderHint Antialiasing
setPen 0x7fff0000 0 solidline squarecap
repeat_block lines
restore
save
translate 20 250
clearRenderHint
setPen black 1 solidline squarecap
repeat_block lines
setRenderHint Antialiasing
setPen 0x7fff0000 1 solidline squarecap
repeat_block lines
translate 250.5 0.5
clearRenderHint
setPen black 1 soslidline squarecap
repeat_block lines
setRenderHint Antialiasing
setPen 0x7fff0000 0 solidline squarecap
repeat_block lines
restore
translate 20 500
scale 1.5 1.5
clearRenderHint
setPen black 1 solidline squarecap
repeat_block lines
setRenderHint Antialiasing
setPen 0x7fff0000 1 solidline squarecap
repeat_block lines
translate 250.5 0.5
clearRenderHint
setPen black 1 soslidline squarecap
repeat_block lines
setRenderHint Antialiasing
setPen 0x7fff0000 0 solidline squarecap
repeat_block lines