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>
268 lines
7.5 KiB
Plaintext
268 lines
7.5 KiB
Plaintext
# Version: 1
|
|
# CheckVsReference: 5%
|
|
|
|
translate 20 20
|
|
|
|
begin_block draw
|
|
save
|
|
save
|
|
setPen black 1 SolidLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 SolidLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 SolidLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 2 SolidLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 SolidLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 SolidLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 6 SolidLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 6 SolidLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 6 SolidLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
restore
|
|
|
|
|
|
translate 100 0
|
|
save
|
|
setPen black 1 DotLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 DotLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 DotLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 2 DotLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 DotLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 DotLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 6 DotLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 6 DotLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 6 DotLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
restore
|
|
|
|
translate 100 0
|
|
save
|
|
setPen black 1 DashLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 DashLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 DashLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 2 DashLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 DashLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 DashLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 6 DashLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 6 DashLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 6 DashLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
restore
|
|
|
|
translate 100 0
|
|
|
|
save
|
|
setPen black 1 DashDotLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 DashDotLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 DashDotLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 2 DashDotLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 DashDotLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 DashDotLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 6 DashDotLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 6 DashDotLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 6 DashDotLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
restore
|
|
|
|
translate 100 0
|
|
|
|
save
|
|
setPen black 1 DashDotDotLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 DashDotDotLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 DashDotDotLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 2 DashDotDotLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 DashDotDotLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 DashDotDotLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 4 DashDotDotLine FlatCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 4 DashDotDotLine SquareCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 4 DashDotDotLine RoundCap BevelJoin
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
restore
|
|
|
|
translate 100 0
|
|
|
|
save
|
|
setPen black 1 SolidLine FlatCap BevelJoin
|
|
pen_setDashPattern [1 4 9 4 27 4]
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 SolidLine SquareCap BevelJoin
|
|
pen_setDashPattern [1 4 9 4 27 4]
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 1 SolidLine RoundCap BevelJoin
|
|
pen_setDashPattern [1 4 9 4 27 4]
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 2 SolidLine FlatCap BevelJoin
|
|
pen_setDashPattern [1 4 9 4 27 4]
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 SolidLine SquareCap BevelJoin
|
|
pen_setDashPattern [1 4 9 4 27 4]
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 2 SolidLine RoundCap BevelJoin
|
|
pen_setDashPattern [1 4 9 4 27 4]
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
|
|
setPen black 4 SolidLine FlatCap BevelJoin
|
|
pen_setDashPattern [1 4 9 4 27 4]
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 4 SolidLine SquareCap BevelJoin
|
|
pen_setDashPattern [1 4 9 4 27 4]
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
setPen black 4 SolidLine RoundCap BevelJoin
|
|
pen_setDashPattern [1 4 9 4 27 4]
|
|
drawPolyline [0 0 80 0 80 30 40 20 0 30]
|
|
translate 0 40
|
|
restore
|
|
|
|
restore
|
|
end_block
|
|
|
|
translate 0 400
|
|
setRenderHint Antialiasing
|
|
repeat_block draw
|
|
|
|
translate 0 -20
|
|
drawText 30 0 "Solid"
|
|
|
|
translate 100 0
|
|
drawText 20 0 "DotLine"
|
|
|
|
translate 100 0
|
|
drawText 10 0 "DashLine"
|
|
|
|
translate 100 0
|
|
drawText 0 0 "DashDotLine"
|
|
|
|
translate 100 0
|
|
drawText 0 0 "DashDotDotLine"
|
|
|
|
translate 100 0
|
|
drawText 0 0 "CustomDashLine"
|
|
|
|
resetMatrix
|
|
|
|
translate 620 40
|
|
|
|
begin_block width_and_caps_texts
|
|
drawText 0 0 "Width=1, FlatCap"
|
|
translate 0 40
|
|
drawText 0 0 "Width=1, SquareCap"
|
|
translate 0 40
|
|
drawText 0 0 "Width=1, RoundCap"
|
|
translate 0 40
|
|
drawText 0 0 "Width=2, FlatCap"
|
|
translate 0 40
|
|
drawText 0 0 "Width=2, SquareCap"
|
|
translate 0 40
|
|
drawText 0 0 "Width=2, RoundCap"
|
|
translate 0 40
|
|
drawText 0 0 "Width=6, FlatCap"
|
|
translate 0 40
|
|
drawText 0 0 "Width=6, SqareCap"
|
|
translate 0 40
|
|
drawText 0 0 "Width=6, RoundCap"
|
|
end_block
|
|
|
|
translate 0 80
|
|
repeat_block width_and_caps_texts |