summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/lancelot/scripts/pixmaps.qps
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2021-11-15 13:36:48 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-11-16 14:01:50 +0100
commite8f93e38debf4f46dbda4de198b9dd475df42d5c (patch)
treec042e1fea11d2b63788f1b8855030ecd96e13c19 /tests/auto/other/lancelot/scripts/pixmaps.qps
parent9a131b59ee561e300fb6078886a85dd7b3c53599 (diff)
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>
Diffstat (limited to 'tests/auto/other/lancelot/scripts/pixmaps.qps')
-rw-r--r--tests/auto/other/lancelot/scripts/pixmaps.qps106
1 files changed, 0 insertions, 106 deletions
diff --git a/tests/auto/other/lancelot/scripts/pixmaps.qps b/tests/auto/other/lancelot/scripts/pixmaps.qps
deleted file mode 100644
index 0b4ba2c4fb..0000000000
--- a/tests/auto/other/lancelot/scripts/pixmaps.qps
+++ /dev/null
@@ -1,106 +0,0 @@
-# Version: 1
-# CheckVsReference: 1% (0 0 690 580)
-
-
-setRenderHint Antialiasing
-
-setPen #00ff00
-
-pixmap_load dome_argb32.png the_pixmap
-begin_block draw_stuff
-
-save
-
- # standard draw
- drawPixmap the_pixmap 0 0
-
- # sub recting
- translate 120 0
- drawPixmap the_pixmap 0 0 40 40 0 0 40 40
- drawPixmap the_pixmap 60 0 40 40 60 0 40 40
- drawPixmap the_pixmap 0 60 40 40 0 60 40 40
- drawPixmap the_pixmap 60 60 40 40 60 60 40 40
- drawPixmap the_pixmap 0 40 40 20 0 40 40 20
- drawPixmap the_pixmap 60 40 40 20 60 40 40 20
- drawPixmap the_pixmap 40 0 20 100 40 0 20 100
-
- # subrecting w/scale
- translate 120 0
- drawPixmap the_pixmap 0 0 50 50 0 0 25 25
- drawPixmap the_pixmap 50 0 50 50 25 0 25 25
- drawPixmap the_pixmap 0 50 50 50 0 25 25 25
- drawPixmap the_pixmap 50 50 50 50 25 25 25 25
-
- # subrecting w/scale & smooth xform
- translate 120 0
- setRenderHint SmoothPixmapTransformation
- drawPixmap the_pixmap 0 0 50 50 0 0 25 25
- drawPixmap the_pixmap 50 0 50 50 25 0 25 25
- drawPixmap the_pixmap 0 50 50 50 0 25 25 25
- drawPixmap the_pixmap 50 50 50 50 25 25 25 25
-
-
- # Rotation w/o smooth xform
- translate 120 0
- save
- setRenderHint SmoothPixmapTransform off
- rotate 10
- drawPixmap the_pixmap 0 0
- restore
-
- # Rotation w smooth xform
- translate 120 0
- save
- setRenderHint SmoothPixmapTransform
- rotate 10
- drawPixmap the_pixmap 0 0
- restore
-
-restore
-
-end_block
-
-
-translate 0 120
-pixmap_load dome_rgb32.png the_pixmap
-repeat_block draw_stuff
-
-translate 0 120
-pixmap_load dome_indexed.png the_pixmap
-repeat_block draw_stuff
-
-translate 0 120
-pixmap_load dome_indexed_mask.png the_pixmap
-repeat_block draw_stuff
-
-translate 0 120
-pixmap_load dome_mono.png the_pixmap
-repeat_block draw_stuff
-
-
-resetMatrix
-translate 700 60
-setPen black
-drawText 0 0 "32 bit w/alpha"
-translate 0 120
-drawText 0 0 "32 bit w/o alpha"
-translate 0 120
-drawText 0 0 "8 bit indexed"
-translate 0 120
-drawText 0 0 "8 bit indexed w/mask"
-translate 0 120
-drawText 0 0 "1 bit"
-resetMatrix
-translate 0 600
-drawText 0 0 "normal"
-translate 120 0
-drawText 0 0 "subrect"
-translate 120 0
-drawText 0 0 "subrect scale"
-translate 120 0
-drawText 0 0 "subrect scale smooth"
-translate 120 0
-drawText 0 0 "xform"
-translate 120 0
-drawText 0 0 "smooth xform"
-translate 120 0 \ No newline at end of file