summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/lancelot/scripts/statictext.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/statictext.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/statictext.qps')
-rw-r--r--tests/auto/other/lancelot/scripts/statictext.qps175
1 files changed, 0 insertions, 175 deletions
diff --git a/tests/auto/other/lancelot/scripts/statictext.qps b/tests/auto/other/lancelot/scripts/statictext.qps
deleted file mode 100644
index c2a30d0864..0000000000
--- a/tests/auto/other/lancelot/scripts/statictext.qps
+++ /dev/null
@@ -1,175 +0,0 @@
-drawStaticText -5 5 "Text that is drawn outside the bounds..."
-
-translate 20 20
-begin_block text_drawing
-save
- setFont "sansserif" 10 normal
- drawStaticText 0 20 "sansserif 10pt, normal"
-
- setFont "sansserif" 12 normal
- drawStaticText 0 40 "sansserif 12pt, normal"
-
- setFont "sansserif" 12 bold
- drawStaticText 0 60 "sansserif 12pt, bold"
-
- setFont "sansserif" 10 bold italic
- drawStaticText 0 80 "sansserif 10pt, bold italic"
-
-
- translate 0 100
- setPen #7fff0000
-
- setFont "sansserif" 10 normal
- drawStaticText 0 20 "alpha sansserif 10pt, normal"
-
- setFont "sansserif" 12 normal
- drawStaticText 0 40 "alpha sansserif 12pt, normal"
-
- setFont "sansserif" 12 bold
- drawStaticText 0 60 "alpha sansserif 12pt, bold"
-
- setFont "sansserif" 10 bold italic
- drawStaticText 0 80 "alpha sansserif 10pt, bold italic"
-
-
- translate 0 100
- setPen black
- save
- scale 0.9 0.9
-
- setFont "sansserif" 10 normal
- drawStaticText 0 20 "scaled sansserif 10pt, normal"
-
- setFont "sansserif" 12 normal
- drawStaticText 0 40 "scaled sansserif 12pt, normal"
-
- setFont "sansserif" 12 bold
- drawStaticText 0 60 "scaled sansserif 12pt, bold"
-
- setFont "sansserif" 10 bold italic
- drawStaticText 0 80 "scaled sansserif 10pt, bold italic"
- restore
-
- translate 200 200
- setPen black
- save
- scale -1 -1
-
- setFont "sansserif" 10 normal
- drawStaticText 0 20 "flipped sansserif 10pt, normal"
-
- setFont "sansserif" 12 normal
- drawStaticText 0 40 "flipped sansserif 12pt, normal"
-
- setFont "sansserif" 12 bold
- drawStaticText 0 60 "flipped sansserif 12pt, bold"
-
- setFont "sansserif" 10 bold italic
- drawStaticText 0 80 "flipped sansserif 10pt, bold italic"
- restore
-
- translate -200 20
- setPen black
- save
- translate 200 90
- rotate 185
-
- setFont "sansserif" 10 normal
- drawStaticText 0 20 "rotated sansserif 10pt, normal"
-
- setFont "sansserif" 12 normal
- drawStaticText 0 40 "rotated sansserif 12pt, normal"
-
- setFont "sansserif" 12 bold
- drawStaticText 0 60 "rotated sansserif 12pt, bold"
-
- setFont "sansserif" 10 bold italic
- drawStaticText 0 80 "rotated sansserif 10pt, bold italic"
- restore
-
- translate 0 100
- gradient_appendStop 0 red
- gradient_appendStop 0.5 #00ff00
- gradient_appendStop 1 blue
- gradient_setLinear 0 0 200 0
- setPen brush
-
- setFont "sansserif" 10 normal
- drawStaticText 0 0 "gradient sansserif 10pt, normal"
-
- setFont "sansserif" 12 normal
- drawStaticText 0 20 "gradient sansserif 12pt, normal"
-
- setFont "sansserif" 12 bold
- drawStaticText 0 40 "gradient sansserif 12pt, bold"
-
- setFont "sansserif" 10 bold italic
- drawStaticText 0 60 "gradient sansserif 10pt, bold italic"
-restore
-end_block
-
-translate 250 0
-drawStaticText 25 640 "clipped to rectangle"
-save
- setPen #3f000000
- setBrush nobrush
- drawRect 20 0 100 620
- setClipRect 20 0 100 620
- setPen black
- repeat_block text_drawing
-restore
-
-translate 150 0
-drawStaticText 25 640 "clipped to path"
-save
- path_moveTo clip 20 0
- path_cubicTo clip 0 200 40 400 20 400
- path_lineTo clip 30 620
- path_lineTo clip 30 0
- path_lineTo clip 40 0
- path_lineTo clip 40 620
- path_lineTo clip 120 620
- path_lineTo clip 120 0
- path_lineTo clip 20 0
- setPen #3f000000
- setBrush nobrush
- drawPath clip
- setClipPath clip
- setPen black
- repeat_block text_drawing
-restore
-
-translate 150 0
-save
- setPen black
- setFont "sansserif" 16 normal
- drawStaticText 0 40 "e😃m😇o😍j😜i😸!"
-restore
-
-translate 0 55
-save
- setPen black
- setFont "sansserif" 12 normal normal default underline
- drawStaticText 0 20 "Underlined text drawing"
-restore
-
-translate 0 35
-save
- setPen black
- setFont "sansserif" 12 normal normal default normal strikeout
- drawStaticText 0 20 "Struck out text drawing"
-restore
-
-translate 0 35
-save
- setPen black
- setFont "sansserif" 12 normal normal default normal normal overline
- drawStaticText 0 20 "Overlined text drawing"
-restore
-
-translate 0 35
-save
- setPen black
- setFont "sansserif" 12 normal normal default underline strikeout overline
- drawStaticText 0 20 "All the effects text drawing"
-restore