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

44 lines
855 B
Plaintext

# Version: 1
# CheckVsReference: 5%
drawText 75 20 "Linear"
drawText 176 20 "Radial"
drawText 277 20 "Conical"
translate 0 30
drawText 0 50 "AA off"
drawText 0 151 "AA on"
setPen nopen
gradient_clearStops
gradient_appendStop 0 0x00000000
gradient_appendStop 0.001 red
gradient_appendStop 0.2 blue
gradient_appendStop 0.4 yellow
gradient_appendStop 0.6 cyan
gradient_appendStop 0.8 green
gradient_appendStop 0.999 red
gradient_appendStop 1 0x00000000
gradient_setSpread PadSpread
gradient_setCoordinateMode ObjectBoundingMode
begin_block row
save
gradient_setLinear 0.1 0.0 0.9 0.0
drawRect 50 0 100 100
gradient_setRadial 0.5 0.5 0.5 0.5 0.5
translate 101 0
drawRect 50 0 100 100
gradient_setConical 0.5 0.5 45
translate 101 0
drawRect 50 0 100 100
restore
end_block row
setRenderHint Antialiasing
translate 0 101
repeat_block row