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

86 lines
1.6 KiB
Plaintext

# Version: 1
# CheckVsReference: 5%
surface_begin 0 0 600 600
translate 0 50
setPen nopen
setBrush 0x7f000000
gradient_clearStops
gradient_appendStop 0 red
gradient_appendStop 0.25 orange
gradient_appendStop 0.5 yellow
gradient_appendStop 0.8 green
gradient_appendStop 1 cyan
gradient_setSpread PadSpread
gradient_setRadial 20 20 220 200
drawEllipse 10 10 80 80
drawEllipse 50 50 120 90
translate 100 0
brushTranslate 40 20
brushScale 0.25 0.25
setPen black
drawEllipse 10 10 80 80
setOpacity 0.5
setCompositionMode SourceIn
drawEllipse 50 50 120 90
setOpacity 1.0
setRenderHint Antialiasing
setCompositionMode Xor
brushTranslate 70 0
translate 100 0
drawEllipse 10 10 80 80
setPen nopen
drawEllipse 50 50 120 90
setOpacity 0.7
setBrush red
translate 100 0
setCompositionMode SourceOver
drawEllipse 10 10 80 80
setOpacity 0.6
setPen black 5.0
gradient_clearStops
gradient_appendStop 0 red
gradient_appendStop 0.25 orange
gradient_appendStop 0.5 yellow
gradient_appendStop 0.8 green
gradient_appendStop 1 cyan
gradient_setSpread PadSpread
gradient_setLinear 20 20 120 100
drawEllipse 50 50 120 90
translate 100 0
setOpacity 1.0
drawEllipse 10 10 80 80
setCompositionMode SourceIn
setOpacity 0.7
setPen black 3.0
gradient_clearStops
gradient_appendStop 0 red
gradient_appendStop 0.25 orange
gradient_appendStop 0.5 yellow
gradient_appendStop 0.8 green
gradient_appendStop 1 cyan
gradient_setSpread PadSpread
gradient_setLinear 50 50 80 90
drawEllipse 50 50 120 90
surface_end
drawText 200 220 "Testing Ellipse drawing with varios combinations"
drawText 200 240 "of features such as brushes, pens and composition modes"