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

81 lines
1.7 KiB
Plaintext

# Version: 1
# CheckVsReference: 5%
image_load dome_argb32.png the_pixmap
image_convertToFormat the_pixmap the_pixmap ARGB32_Premultiplied
begin_block draw_stuff
save
image_convertToFormat the_pixmap converted ARGB32_Premultiplied
drawImage converted 0 0
translate 0 110
image_convertToFormat the_pixmap converted ARGB32
drawImage converted 0 0
translate 0 110
image_convertToFormat the_pixmap converted RGB32
drawImage converted 0 0
translate 0 110
image_convertToFormat the_pixmap converted Indexed8
drawImage converted 0 0
translate 0 110
image_convertToFormat the_pixmap converted MonoLSB
drawImage converted 0 0
translate 0 110
image_convertToFormat the_pixmap converted Mono
drawImage converted 0 0
translate 0 110
restore
end_block
image_load dome_argb32.png the_pixmap
translate 110 0
repeat_block draw_stuff
image_load dome_rgb32.png the_pixmap
translate 110 0
repeat_block draw_stuff
image_load dome_indexed.png the_pixmap
translate 110 0
repeat_block draw_stuff
image_load dome_mono.png the_pixmap
translate 110 0
repeat_block draw_stuff
image_load dome_mono_palette.png the_pixmap
translate 110 0
repeat_block draw_stuff
image_load dome_indexed_mask.png the_pixmap
translate 110 0
repeat_block draw_stuff
# helpful texts
resetMatrix
setPen black
drawText 10 670 "ARGB32_PM"
drawText 120 670 "ARGB32"
drawText 230 670 "RGB32"
drawText 340 670 "Indexed"
drawText 450 670 "Mono"
drawText 560 670 "Mono w/lut"
drawText 670 670 "Indexed w/mask"
drawText 770 50 "ARGB32_PM"
drawText 770 160 "ARGB32"
drawText 770 270 "RGB32"
drawText 770 380 "Indexed"
drawText 770 490 "MonoLSB"
drawText 770 600 "Mono"