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>
44 lines
598 B
Plaintext
44 lines
598 B
Plaintext
|
|
setRenderHint Antialiasing true
|
|
setRenderHint SmoothPixmapTransform true
|
|
|
|
image_load sign.png img1
|
|
pixmap_load sign.png pix1
|
|
|
|
begin_block drawIt
|
|
save
|
|
|
|
drawImage img1 20 20 -1 -1
|
|
drawRect 17.5 17.5 85 85
|
|
|
|
setBrush img1
|
|
setPen NoPen
|
|
drawRect 20 120 120 120
|
|
|
|
brushRotate 45
|
|
drawRect 20 260 120 120
|
|
|
|
setBrush NoBrush
|
|
drawTiledPixmap pix1 20 400 120 120
|
|
|
|
restore
|
|
end_block
|
|
|
|
save
|
|
translate 150 0
|
|
rotate -5
|
|
repeat_block drawIt
|
|
restore
|
|
|
|
image_setDevicePixelRatio img1 2.0
|
|
pixmap_setDevicePixelRatio pix1 2.0
|
|
translate 400 0
|
|
repeat_block drawIt
|
|
|
|
save
|
|
translate 150 0
|
|
rotate -5
|
|
repeat_block drawIt
|
|
restore
|
|
|