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>
137 lines
2.4 KiB
Plaintext
137 lines
2.4 KiB
Plaintext
# Version: 1
|
|
# CheckVsReference: 5%
|
|
|
|
translate 10 30
|
|
setBackground 7f7fff
|
|
setBackgroundMode Transparent
|
|
setPen ff7f7f
|
|
|
|
path_moveTo path 0 0
|
|
path_lineTo path 25 0
|
|
path_cubicTo path 50 0 25 25 25 50
|
|
path_lineTo path 0 50
|
|
|
|
bitmap_load bitmap.png bitmap
|
|
|
|
begin_block drawing
|
|
save
|
|
drawRect 0 0 50 50
|
|
|
|
translate 60 0
|
|
drawEllipse 0 0 50 50
|
|
|
|
translate 60 0
|
|
drawPolygon [0 0 50 0 25 50 25 25]
|
|
|
|
translate 60 0
|
|
drawPath path
|
|
|
|
translate 60 0
|
|
drawPie 0 0 50 50 1440 2000
|
|
|
|
translate 60 0
|
|
drawChord 0 0 50 50 1440 2000
|
|
|
|
translate 60 0
|
|
drawLine 0 0 50 0
|
|
drawLine 0 0 50 50
|
|
drawLine 0 0 0 50
|
|
|
|
translate 60 0
|
|
drawPolyline [0 0 50 0 25 50 25 25]
|
|
|
|
translate 60 0
|
|
drawArc 0 0 50 50 1440 2000
|
|
|
|
translate 60 0
|
|
drawText 0 10 "Jambi-Bambi"
|
|
|
|
translate 80 0
|
|
drawPixmap bitmap 0 0
|
|
restore
|
|
|
|
save
|
|
setRenderHint Antialiasing
|
|
translate 5 55
|
|
drawRect 0 0 50 50
|
|
|
|
translate 60 0
|
|
drawEllipse 0 0 50 50
|
|
|
|
translate 60 0
|
|
drawPolygon [0 0 50 0 25 50 25 25]
|
|
|
|
translate 60 0
|
|
drawPath path
|
|
|
|
translate 60 0
|
|
drawPie 0 0 50 50 1440 2000
|
|
|
|
translate 60 0
|
|
drawChord 0 0 50 50 1440 2000
|
|
|
|
translate 60 0
|
|
drawLine 0 0 50 0
|
|
drawLine 0 0 50 50
|
|
drawLine 0 0 0 50
|
|
|
|
translate 60 0
|
|
drawPolyline [0 0 50 0 25 50 25 25]
|
|
|
|
translate 60 0
|
|
drawArc 0 0 50 50 1440 2000
|
|
|
|
translate 60 0
|
|
drawText 0 10 "Jambi-Bambi"
|
|
|
|
translate 80 0
|
|
drawPixmap bitmap 0 0
|
|
restore
|
|
end_block
|
|
|
|
translate 0 160
|
|
setBackgroundMode Transparent
|
|
setPen ff7f7f 0 dotline flatcap beveljoin
|
|
repeat_block drawing
|
|
|
|
translate 0 160
|
|
setBackgroundMode Opaque
|
|
setPen ff7f7f 0 dotline flatcap beveljoin
|
|
repeat_block drawing
|
|
|
|
translate 0 160
|
|
setBackgroundMode Transparent
|
|
setPen ff7f7f 4 dashline flatcap beveljoin
|
|
repeat_block drawing
|
|
|
|
translate 0 160
|
|
setBackgroundMode OpaqueMode
|
|
setPen ff7f7f 4 dashline flatcap beveljoin
|
|
repeat_block drawing
|
|
|
|
resetMatrix
|
|
|
|
translate 5 5
|
|
|
|
setBrush nobrush
|
|
setPen black
|
|
setBackgroundMode transparent
|
|
drawText 10 15 "TransparentMode with solid 0-width pen"
|
|
drawRect 0 0 685 135
|
|
|
|
translate 0 160
|
|
drawText 10 15 "TransparentMode with dotted 0-width pen"
|
|
drawRect 0 0 685 135
|
|
|
|
translate 0 160
|
|
drawText 10 15 "OpaqueMode with dotted 0-width pen"
|
|
drawRect 0 0 685 135
|
|
|
|
translate 0 160
|
|
drawText 10 15 "TransparentMode with dotted 4-width pen"
|
|
drawRect 0 0 685 135
|
|
|
|
translate 0 160
|
|
drawText 10 15 "OpaqueMode with solid 4-width pen"
|
|
drawRect 0 0 685 135
|