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

104 lines
1.7 KiB
Plaintext

# Version: 1
# CheckVsReference: 5%
path_addRect p 0 0 75 75
path_addEllipse p 25 25 75 75
translate 10 10
begin_block setup_gradient
gradient_clearStops
gradient_appendStop 0 red
gradient_appendStop 0.1 blue
gradient_appendStop 0.2 yellow
gradient_appendStop 0.3 cyan
gradient_appendStop 0.4 magenta
gradient_appendStop 0.5 green
gradient_appendStop 0.6 black
gradient_appendStop 0.7 indianred
gradient_appendStop 0.8 white
gradient_appendStop 0.9 orange
gradient_appendStop 1 blue
gradient_setLinear 0 0 100 100
end_block
setPen brush 0
setBrush nobrush
begin_block drawing
save
drawLine 0 0 100 100
translate 0 100
drawPath p
translate 0 110
drawRect 0 0 100 100
translate 0 110
drawPolyline [0 0 100 0 50 50]
drawPoint 40 40
drawPoint 41 40
drawPoint 42 40
drawPoint 43 40
drawPoint 44 40
drawPoint 45 40
drawPoint 46 40
drawPoint 47 40
drawPoint 48 40
drawPoint 49 40
drawPoint 50 40
restore
end_block
save
translate 110 0
save
setRenderHint Antialiasing
repeat_block drawing
restore
setBrush dome_rgb32.png
setPen brush 0
setBrush nobrush
translate 110 0
repeat_block drawing
translate 110 0
save
setRenderHint Antialiasing
repeat_block drawing
restore
restore
translate 0 0
save
repeat_block setup_gradient
setPen brush 5
setBrush nobrush
translate 0 350
repeat_block drawing
translate 110 0
save
setRenderHint Antialiasing
repeat_block drawing
restore
setBrush dome_rgb32.png
setPen brush 5
setBrush nobrush
translate 110 0
repeat_block drawing
translate 110 0
save
setRenderHint Antialiasing
repeat_block drawing
restore
restore