summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/qps/clipping.qps
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2011-06-29 13:24:37 +0200
committerQt by Nokia <qt-info@nokia.com>2011-06-29 15:10:14 +0200
commitbf3c84f718454f84b2ffbfa7fd1c7998bb5b01c2 (patch)
tree22579e69f7c8eb345b7bf9b8a2ed76ec53d417c3 /tests/arthur/data/qps/clipping.qps
parent03deed59ba31bd2e5ac1e799e0eb03cd4e8f5e41 (diff)
Cleaning up the QPainter/arthur testing stuff
This removes various remains of historical test tools, and the entire tests/arthur directory. The living parts are now: tests/auto/lancelot - including the suite of qps scripts. The script engine now lives here. tests/baselineserver - moved to toplevel since not arthur-specific. tests/manual/lance - for manual running and editing of qps scripts. Change-Id: I7c7f5df9197f4984a918dd1f9b31f42ee80d6152 Reviewed-on: http://codereview.qt.nokia.com/895 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'tests/arthur/data/qps/clipping.qps')
-rw-r--r--tests/arthur/data/qps/clipping.qps179
1 files changed, 0 insertions, 179 deletions
diff --git a/tests/arthur/data/qps/clipping.qps b/tests/arthur/data/qps/clipping.qps
deleted file mode 100644
index 09a7e776f0..0000000000
--- a/tests/arthur/data/qps/clipping.qps
+++ /dev/null
@@ -1,179 +0,0 @@
-region_addRect clip 50 0 90 190
-region_addRect clip 0 50 180 90
-
-region_addRect clip2 30 30 60 60
-
-region_addRect clip3 10 10 60 60
-
-path_cubicTo path 90 0 50 50 90 90
-path_cubicTo path 0 90 50 50 0 0
-
-path_addRect path2 0 0 90 90
-path_moveTo path2 90 45
-path_arcTo path2 0 0 90 90 0 -360
-
-path_addRect emptypath 0 0 0 0
-region_addRect emptyregion 0 0 0 0
-
-# Normal clip rect
-setClipRect 0 0 50 150
-begin_block repaint
-save
-setBrush red
-setPen nopen
-resetMatrix
-region_getClipRegion tmpclip
-path_getClipPath tmpclippath
-drawRect 0 0 width height
-setBrush #3f0000ff
-setClipRegion tmpclip
-drawRect 0 0 width height
-setClipPath tmpclippath
-setBrush #3f00ff00
-drawRect 0 0 width height
-restore
-end_block
-
-# Rotated clip rect
-translate 100 0
-rotate 10
-setClipRect 0 0 50 150
-repeat_block repaint
-
-# simple clip region
-resetMatrix
-translate 0 200
-setClipRegion clip
-repeat_block repaint
-
-# simle rotated clip region
-translate 250 -10
-rotate 10
-setClipRegion clip
-repeat_block repaint
-
-# verify that clip is not xformed with painter
-resetMatrix
-translate 200 0
-setClipRegion clip
-rotate 30
-setBrush red
-setPen nopen
-drawRect 0 0 width height
-
-resetMatrix
-translate 0 400
-save
-setClipRegion clip
-setClipRegion clip2 IntersectClip
-repeat_block repaint
-translate 0 100
-rotate 10
-setClipRegion clip
-setClipRegion clip2 IntersectClip
-restore
-
-translate 100 0
-save
-setClipRegion clip3
-setClipRegion clip2 UniteClip
-repeat_block repaint
-translate 0 100
-rotate 10
-setClipRegion clip3
-setClipRegion clip2 UniteClip
-repeat_block repaint
-restore
-
-translate 100 0
-save
-setClipPath path
-repeat_block repaint
-translate 50 100
-rotate 45
-setClipPath path
-repeat_block repaint
-restore
-
-translate 100 0
-save
-setClipPath path
-setClipPath path2 IntersectClip
-repeat_block repaint
-translate 0 100
-rotate 10
-setClipPath path
-setClipPath path2 IntersectClip
-repeat_block repaint
-restore
-
-translate 100 0
-save
-setClipPath path
-setClipPath path2 UniteClip
-repeat_block repaint
-translate 0 100
-rotate 10
-setClipPath path
-setClipPath path2 UniteClip
-repeat_block repaint
-restore
-
-translate 100 0
-save
-setClipPath path
-setClipRegion clip3 IntersectClip
-repeat_block repaint
-translate 0 100
-rotate 10
-setClipRegion clip3
-setClipPath path IntersectClip
-repeat_block repaint
-restore
-
-translate 100 0
-save
-setClipPath path
-setClipRegion clip3 UniteClip
-repeat_block repaint
-translate 0 100
-rotate 10
-setClipRegion clip3
-setClipPath path UniteClip
-repeat_block repaint
-restore
-
-# test that an empty region is not drawn.
-resetMatrix
-setClipRegion emptyregion
-setBrush #3f00ff00
-drawRect 0 0 300 300
-drawText 50 50 "Text should be clipped away by region"
-setClipping false
-
-setClipPath emptypath
-setBrush #3fffff00
-drawRect 50 50 300 300
-drawText 70 80 "Text should be clipped away by path"
-
-# Test that we can extract a clipregion when a matrix is set too
-resetMatrix
-translate 500 10
-scale 2 1
-setBrush blue
-setClipping false
-rotate 5
-drawRect 0 0 100 100
-setClipRect 0 0 100 100
-resetMatrix
-rotate 10
-region_getClipRegion xclip
-setClipRegion xclip
-resetMatrix
-setBrush #7f00ff00
-drawRect 0 0 width height
-
-# the below used to assert in debug mode
-setClipRect 10 10 20 20
-setClipping false
-setClipping true