e8f93e38de
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>
133 lines
2.5 KiB
Plaintext
133 lines
2.5 KiB
Plaintext
# Version: 1
|
|
|
|
translate 10 10
|
|
|
|
setPen 0xffff0000 0 solidline squarecap
|
|
translate 50 50
|
|
begin_block draw_lines
|
|
save
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
rotate 10
|
|
drawLine 10 0 50 0
|
|
restore
|
|
end_block
|
|
|
|
setPen 0xffff0000 0 dotline squarecap
|
|
translate 100 0
|
|
repeat_block draw_lines
|
|
setPen 0xffff0000 0 dashdotline squarecap
|
|
translate 100 0
|
|
repeat_block draw_lines
|
|
setPen 0xffff0000 0 dashdotdotline squarecap
|
|
translate 100 0
|
|
repeat_block draw_lines
|
|
setPen 0xffff0000 0 dashline squarecap
|
|
translate 100 0
|
|
repeat_block draw_lines
|
|
|
|
path_moveTo mypath 10 10
|
|
path_lineTo mypath 87 10
|
|
path_moveTo mypath 10 30
|
|
path_lineTo mypath 87 30
|
|
path_moveTo mypath 10 50
|
|
path_lineTo mypath 87 50
|
|
|
|
resetMatrix
|
|
translate 0 150
|
|
|
|
begin_block distinctLines
|
|
|
|
setPen black 0 SolidLine SquareCap
|
|
pen_setDashPattern [ 3 3 ]
|
|
drawPath mypath
|
|
|
|
translate 100 0
|
|
setPen black 5 SolidLine SquareCap
|
|
pen_setDashPattern [ 3 3 ]
|
|
drawPath mypath
|
|
|
|
translate 100 0
|
|
setPen black 0 SolidLine RoundCap
|
|
pen_setDashPattern [ 3 3 ]
|
|
drawPath mypath
|
|
|
|
translate 100 0
|
|
setPen black 5 SolidLine RoundCap
|
|
pen_setDashPattern [ 3 3 ]
|
|
drawPath mypath
|
|
|
|
end_block distinctLines
|
|
|
|
resetMatrix
|
|
translate 0 220
|
|
setRenderHint Antialiasing true
|
|
repeat_block distinctLines
|